mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-13 05:43:08 +05:00
remove warnings for boost::python < 1.60
This commit is contained in:
parent
fc50af5462
commit
da7cd7c0ad
@ -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); }))
|
||||
|
@ -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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user