
14 Oct
2009
14 Oct
'09
11:23 p.m.
On Tue, Oct 13, 2009 at 7:34 PM, Randolph Fritz
What is wrong with the following code? I suspect I'm doing something silly, and I suspect the answer is obvious.
#include
#include #include
#include using namespace osg; typedef ref_ptr<Node> NodePtr;
using namespace boost::python;
BOOST_PYTHON_MODULE(NodePtr) { class_
("NodePtr") ; }
Boost.Python knows Boost and TR1 smart pointers, not any others. If you are using any others (ref_ptr in this case I gather) then you need to make Boost.Python aware of it, I am not sure how, reading through the code might reveal how.