fix ambiguous namespace

This commit is contained in:
Christopher Lackner 2019-08-06 15:58:15 +02:00
parent 262f1ea12c
commit 575e863e4a
2 changed files with 3 additions and 2 deletions

View File

@ -7,10 +7,10 @@
#include "archive.hpp"
#include "flags.hpp"
#include "ngcore_api.hpp"
namespace py = pybind11;
namespace ngcore
{
namespace py = pybind11;
template<typename T>
Array<T> makeCArray(const py::object& obj)

View File

@ -4,10 +4,11 @@
#include <pybind11/operators.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include <iostream>
#include <sstream>
#include <core/python_ngcore.hpp>
using namespace ngcore;
template <typename T>
py::array MoveToNumpy(std::vector<T>& vec)