remove warnings for boost::python < 1.60

This commit is contained in:
Matthias Hochsteger 2016-01-29 15:23:58 +01:00
parent fc50af5462
commit da7cd7c0ad
2 changed files with 4 additions and 0 deletions

View File

@ -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<shared_ptr<SPSolid>>();
#endif
bp::class_<SPSolid, shared_ptr<SPSolid>, boost::noncopyable> ("Solid", bp::no_init)
.def ("__str__", &ToString<SPSolid>)
.def ("__add__", FunctionPointer( [] ( shared_ptr<SPSolid> self, shared_ptr<SPSolid> other) { return make_shared<SPSolid> (SPSolid::UNION, self, other); }))

View File

@ -296,7 +296,9 @@ DLL_HEADER void ExportNetgenMeshing()
;
#if BOOST_VERSION < 106000
bp::register_ptr_to_python<shared_ptr<Mesh>>();
#endif
bp::class_<Mesh,shared_ptr<Mesh>,boost::noncopyable>("Mesh", bp::no_init)
// .def(bp::init<>("create empty mesh"))