Boost logo

Boost :

Subject: Re: [boost] Severe shared_ptr limitation WRT dynamically loaded libraries
From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-11-20 11:26:37


On Thu, Nov 20, 2008 at 8:16 AM, J.D. Herron <jotadehace_at_[hidden]> wrote:
> Thanks for your suggestion. I've used this strategy for other things but it
> just seems like an awful lot of trouble for something I would like to just
> act like a raw pointer.

I think that this is the only viable strategy because for good reasons
shared_ptr (including std::shared_ptr) leaves this type of things
unspecified (not to mention DLLs are outside of the scope of the C++
standard anyway.)

Also, the user is completely insulated from the "awful lot of trouble"
you're talking about.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk