Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-29 Thread David Abrahams
on Sat Nov 15 2008, "Leonard Ritter" wrote: > yields === > > /usr/include/boost/python/object/pointer_holder.hpp: In constructor > 'boost::python::objects::pointer_holder Value>::pointer_holder(PyObject*) > [with Pointer = boost::shared_ptr, Value = halebopp::Act

Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-29 Thread David Abrahams
on Sat Nov 15 2008, "Leonard Ritter" wrote: > I think I know what the issue is, and it indeed relates to a piece of code I > have > not posted yet. > > void Actor::add(const ActorPtr &actor) { > assert(actor); > assert(!actor->parent); > actor->parent = ActorPtr(this); Whoa, this i