This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[STL] <memory>: class auto_ptr ?
- To: egcs-bugs at cygnus dot com
- Subject: [STL] <memory>: class auto_ptr ?
- From: Jens Maurer <jmaurer at menuett dot rhein-main dot de>
- Date: Wed, 20 Jan 1999 22:26:44 +0100
Here's another problem with the STL implementation of egcs:
class auto_ptr in <memory> is currently (libstdc++ of
egcs-1.1.1 release) disabled by means of "#if 0 / #endif".
I think the comment
// Note: auto_ptr is commented out in this release because the details
// of the interface are still being discussed by the C++
standardization
// committee. It will be included once the iterface is finalized.
is no longer relevant (Standard C++ is done), so the "#if 0 / #endif"
should be removed as well as the _MUTABLE_IS_KEYWORD and
_EXPLICIT_IS_KEYWORD checks (looks like they are from the SGI compiler).
The last line of the auto_ptr definition
X* release const __STL_NOTHROW { owns = false; return ptr }
needs syntax fixing.
Jens Maurer.