
26 Aug
2009
26 Aug
'09
8:54 a.m.
Steven Watanabe wrote:
AMDG
Jeffrey Bosboom wrote:
For the record, if the argument was an auto_ptr&, I would expect the auto_ptr to still own the resource if an exception was thrown, although I don't know how to implement it (moving back into the auto_ptr might throw too).
auto_ptr operations never throw.
Oh. Duh. That's what I get for trying to talk about auto_ptr having not used it for years. Thank you for correcting my ignorance. --Jeffrey Bosboom