On 7/9/14, 3:25 PM, Walter Bright wrote:
On 7/9/2014 2:47 PM, Andrei Alexandrescu wrote:
On 7/9/14, 1:51 PM, Walter Bright wrote:
On 7/9/2014 1:35 PM, Andrei Alexandrescu wrote:
Hmmm... how about using u after that?

Using u after that would either cause an exception to be thrown, or
they'd get T.init as a value. I tend to favor the latter, but of course
those decisions would have to be made as part of the design of Unique.

That semantics would reenact the auto_ptr disaster so probably
wouldn't be a
good choice. -- Andrei


Is there a good reference on that disaster?

https://www.google.com/search?q=std%20auto_ptr%20sucks&gws_rd=ssl

:o)

It was the one library artifact that was deemed sufficiently bad for C++ to be straight deprecated. They didn't attempt that even with iostreams.


Andrei

Reply via email to