Boost logo

Boost :

From: cppljevans_at_[hidden]
Date: 2003-09-30 23:02:21


On 09/30/2003 09:33 PM, David Abrahams wrote:
> "Philippe A. Bouchard" <philippe_at_[hidden]> writes:
>
>
>>David Abrahams wrote:
>>
[snip]
>>
>>stype<int> * p = new stype<int>(9);
>>
>>delete p; // This delete will work
>
>
> So, despite that you said "no", the answer is "yes, it still exposes
> an unmanaged raw pointer" AFAICT.
>
> There are other reasons not to do that, for example exception safety.
>
Code that looks almost like Philippe's but avoids any raw ptr problem
was suggested here:

http://article.gmane.org/gmane.comp.lib.boost.devel/1415/match=private+auto+ptr


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