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

2012-04-25 Thread Dave Abrahams
I don't understand; all the enable_shared_from_this stuff is commented out. Can you please post the complete, correct example that you tried? on Mon Apr 23 2012, Holger Brandsmeier wrote: > Dave, > > Here is the reduced example with only the > `boost::enable_shared_from_this` variant. The issu

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

2012-04-25 Thread Holger Brandsmeier
Not all of it is commented out, it is enabled for the wrapper. You can try to enable it for the class itself, but then I get a different error, namely: > In fact the statement > class_, boost::noncopyable>("I", > init<>() ) > has an issue. When I call getThisRCP() later, and the return value is