On Aug 5, 2013, at 3:49 PM, Eric Niebler
On 8/5/2013 7:57 AM, Dave Abrahams wrote:
on Sat Aug 03 2013, Eric Niebler
wrote: Not extensively tested. Might miss important corner cases ...
FWIW, there are implementations out there that are likely to be more-tested, e.g. http://home.roadrunner.com/~hinnant/unique_ptr03.html
Thanks for the link. It looks like Howard and I discovered the same trick.
I haven't been closely monitoring this thread, though I did note its existence. Fwiw, I was never thrilled with my C++03 emulation of unique_ptr. I don't recall exactly what doesn't work. But I think I'm correct when I say that it does not succeed in completely emulating a C++11 unique_ptr. There may be clues as to what doesn't work here: http://home.roadrunner.com/~hinnant/unique_ptr.zip Howard