This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/38916] auto_ptr_ref conversion incorrectly releases ownership



------- Comment #1 from paolo dot carlini at oracle dot com  2009-01-19 22:35 -------
Note that auto_ptr is deprecated for the next Standard, replaced by unique_ptr
(which we deliver in C++0x mode). In fact the specifications of auto_ptr are
known to be irreparably broken.  That means we must be *extremely* careful
here, if we touch the code we can destabilize an already brittle behavior.

Do we have evidence that other widespread implementations actually behave
differently than libstdc++-v3 here?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38916


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]