From da7cd7c0adc6a1c19cafeb13d4a0c20cef677c24 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 29 Jan 2016 15:23:58 +0100 Subject: [PATCH] remove warnings for boost::python < 1.60 --- libsrc/csg/python_csg.cpp | 2 ++ libsrc/meshing/python_mesh.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 8977ead0..30e7c23e 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -210,7 +210,9 @@ DLL_HEADER void ExportCSG() ([] (double x, double y) { return Vec<2>(x,y); })); +#if BOOST_VERSION < 106000 bp::register_ptr_to_python>(); +#endif bp::class_, boost::noncopyable> ("Solid", bp::no_init) .def ("__str__", &ToString) .def ("__add__", FunctionPointer( [] ( shared_ptr self, shared_ptr other) { return make_shared (SPSolid::UNION, self, other); })) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index bf557275..6302f013 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -296,7 +296,9 @@ DLL_HEADER void ExportNetgenMeshing() ; +#if BOOST_VERSION < 106000 bp::register_ptr_to_python>(); +#endif bp::class_,boost::noncopyable>("Mesh", bp::no_init) // .def(bp::init<>("create empty mesh"))