[C++-sig] Shared pointers and new objects

2009-02-01 Thread Eric Jonas
I am trying to return a shared pointer to a class Foo and then test the results in python for equality, but they always seem to fail. I've created the following two trivial classes: class Foo : public boost::noncopyable { }; typedef boost::shared_ptr pFoo_t; class FooCreator { public: pFoo

Re: [C++-sig] Shared pointers and new objects

2009-02-01 Thread Ralf W. Grosse-Kunstleve
I had trouble with this myself a few years ago: http://mail.python.org/pipermail/cplusplus-sig/2006-March/010095.html (My reaction was a redesign of my parent/child types, so shared pointers don't explicitly appear in the interfaces anymore.) - Original Message From: Eric Jonas To: