
26 May
2008
26 May
'08
6:33 p.m.
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