From: Dmytro Ovdiienko:
>class SomeClass{
>public:
>
boost::shared_ptr<SomeClass> s_this_;
>
boost::weak_ptr<SomeClass> w_this_;
>
>
SomeClass()
>
{
> s_this_.reset( this
);
> w_this_ =
s_this_;
Shouldn't you be
using shared_from_this()? Creating a shared_ptr from "this" doesn't work
otherwise. Check out the shared_ptr docs for more info.
Cliff