
18 Dec
2008
18 Dec
'08
9:20 p.m.
on Thu Dec 18 2008, Sebastian Redl <sebastian.redl-AT-getdesigned.at> wrote:
Another weakness - at least in my implementation - is that implicit conversions on return don't work. This is not a problem for unique_ptr, really, but it is for my more complex pointers.
OwningStmtResult foo() { return true; // OwningStmtResult has an implicit conversion from bool. }
This fails to compile.
IIRC, if you look around the web you can find an implementation of "move_ptr" by Jonathan Turkanis that does a perfect emulation. -- Dave Abrahams BoostPro Computing http://www.boostpro.com