Subject: Re: [boost] unique_ptr for C++03
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2013-08-05 05:28:14
On 3 August 2013 19:39, Andrew Ho wrote:
> // compiles, but so does std::unique_ptr
> // both will produce undefined runtime behavior on destruction of held value
> // dunno if this is GCC-4.8.1 specific, or if technically allowed by the
> standard and is user error.
> boost::unique_ptr<int> p3(new int);
It's user error.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk