diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 1cc866a8..8f5967a5 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -13,6 +13,10 @@ namespace netgen inline void NOOP_Deleter(void *) { ; } +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER == 190024213 +namespace boost { template<> const volatile CSGeometry* get_pointer(const volatile CSGeometry* p) { return p; } } +#endif + // a shadow solid tree using shared pointers. diff --git a/libsrc/csg/vscsg.cpp b/libsrc/csg/vscsg.cpp index cb4154fa..199e9c07 100644 --- a/libsrc/csg/vscsg.cpp +++ b/libsrc/csg/vscsg.cpp @@ -492,6 +492,10 @@ namespace netgen #include <../general/ngpython.hpp> namespace bp = boost::python; +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER == 190024213 +namespace boost { template<> const volatile netgen::VisualSceneGeometry* get_pointer(const volatile netgen::VisualSceneGeometry* p) { return p; } } +#endif + DLL_HEADER void ExportCSGVis() { using namespace netgen; diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index 8c3f1f42..93d19f14 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -9,12 +9,15 @@ using namespace netgen; namespace bp = boost::python; +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER == 190024213 +namespace boost { template<> const volatile SplineGeometry2d* get_pointer(const volatile SplineGeometry2d* p) { return p; } } +#endif + namespace netgen { extern std::shared_ptr ng_geometry; } - DLL_HEADER void ExportGeom2d() { ModuleScope module("geom2d"); diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 989fb9a9..efad74b0 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -3533,6 +3533,10 @@ namespace netgen #include <../general/ngpython.hpp> namespace bp = boost::python; +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER == 190024213 +namespace boost { template<> const volatile netgen::VisualSceneMesh* get_pointer(const volatile netgen::VisualSceneMesh* p) { return p; } } +#endif + DLL_HEADER void ExportMeshVis() { using namespace netgen;