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]

[STL] <memory>: class auto_ptr ?


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.



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