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

2009-02-08 Thread David Abrahams
on Sun Feb 01 2009, Eric Jonas wrote: > 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 boos

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

2009-02-01 Thread Ralf W. Grosse-Kunstleve
s To: cplusplus-sig@python.org Sent: Sunday, February 1, 2009 7:37:51 AM Subject: [C++-sig] Shared pointers and new objects 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 t

[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