From 832485e41acb20df85c3470db6e467f008e26ae8 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 22 Oct 2020 12:11:19 +0200 Subject: [PATCH] pybind11 compatibility --- libsrc/core/python_ngcore.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/core/python_ngcore.hpp b/libsrc/core/python_ngcore.hpp index 912395b2..634094ad 100644 --- a/libsrc/core/python_ngcore.hpp +++ b/libsrc/core/python_ngcore.hpp @@ -16,8 +16,8 @@ namespace py = pybind11; //////////////////////////////////////////////////////////////////////////////// // automatic conversion of python list to Array<> -PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) -PYBIND11_NAMESPACE_BEGIN(detail) +namespace pybind11 { +namespace detail { template struct ngcore_list_caster { using value_conv = make_caster; @@ -60,8 +60,8 @@ template struct type_caster> : ngcore_list_caster, Type> { }; -PYBIND11_NAMESPACE_END(detail) -PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE) +} // namespace detail +} // namespace pybind11 //////////////////////////////////////////////////////////////////////////////// namespace ngcore