5 Aug
2013
5 Aug
'13
9:28 a.m.
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[2]);
It's user error.