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:
>>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:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk