[Boost users] [interprocess] enable_shared_from_this in boost interprocess?

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? Cheers Lars

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
participants (2)
-
Ion Gaztañaga
-
Lars Hagström