Boost logo

Boost Users :

Subject: [Boost-users] Boost.Python: wrapping OpenSceneGraph smart pointers, again
From: Randolph Fritz (rfritz333_at_[hidden])
Date: 2009-10-13 21:34:54


What is wrong with the following code? I suspect I'm doing something
silly, and I suspect the answer is obvious.

  #include <osg/Node>
  #include <osg/ref_ptr>

  #include <boost/python.hpp>
  #include <boost/python/pointee.hpp>

  using namespace osg;
  typedef ref_ptr<Node> NodePtr;

  using namespace boost::python;

  BOOST_PYTHON_MODULE(NodePtr) {
    class_<NodePtr, pointee<NodePtr> >("NodePtr")
      ;
  }

-- 
Randolph Fritz
  design machine group, architecture department, university of washington
rfritz_at_[hidden] -or- rfritz333_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net