Boost logo

Boost Users :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2008-05-26 14:33:21


Lars Hagström wrote:
> Hi,
>
> I just tried to use enable_shared_from_this in boost interprocess, but
> it did not seem to work. I only got a bad_weak_ptr exception.
>
> Looking a little bit in shared_ptr.hpp (comparing the interprocess one
> and the "normal" one) it appears that calls to
> sp_enable_shared_from_this are not made in the constructors as they
> ought to be.
>
> Is this a known bug, or am I doing something wrong?

Not known, but it's a bug. I don't mention enable_shared_from_this but
it's in the code waiting for a fix and that's why it's in the reference
section. I would fix it ASAP.

Thanks for reporting it,

> Cheers
> Lars

Regards,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net