
27 May
2011
27 May
'11
12:35 a.m.
On 5/26/2011 5:15 PM, Peter Dimov wrote:
It looks like it calls delete with NULL. This is probably the destructor of the temporary auto_ptr, whose pointer is NULL after the assignment.
Does your test use rvalue references by the way (-std=c++0x)?
gcc 4.1.2 doesn't support -std=c++0x. -Phil