[C++-sig] make_constructor and extending from python

2012-02-03 Thread Holger Brandsmeier
Dear list, how can I have a static member function that acts like a constructor in a Wrapper, i.e. I have a class that I want to extend from python? I have a wrapper class around a class (PfemSpace) that has this static member functions: static RCP create( ... ) { RCP ret(new PfemSpaceWr

[C++-sig] storing weak_ptr to this in classes extended from python

2012-02-03 Thread Holger Brandsmeier
Dear list, Note: I am actually using Teuchos::RCP instead of boost::shared_ptr and boost::weak_ptr, but I already mirrored almost all the special treatments in boost::python, and have been successfully using this for a while. Everything that I write should actually apply to both implementations in