std_memory.h (auto_ptr_ref): Reworked and defined only if _GLIBCPP_RESOLVE_LIB_DEFECTS.
authorBranko Cibej <branko.cibej@hermes.si>
Thu, 29 Jun 2000 21:07:04 +0000 (21:07 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 29 Jun 2000 21:07:04 +0000 (21:07 +0000)
commitc011e2ad8adc191c6c38089cf05ae9f3daaf5a08
tree52fa0cbca10dc902dd94856e2761fd6ad182347d
parentd1e43c8bf095960b34fc36a18150b81c300f05ce
std_memory.h (auto_ptr_ref): Reworked and defined only if _GLIBCPP_RESOLVE_LIB_DEFECTS.

2000-06-29  Branko Cibej  <branko.cibej@hermes.si>

        * bits/std_memory.h (auto_ptr_ref): Reworked and defined only if
        _GLIBCPP_RESOLVE_LIB_DEFECTS.
        (auto_ptr): _M_ptr changed to void*.
        (suto_ptr::get): Cast _M_ptr to element type.
        (auto_ptr::auto_ptr(auto_ptr<Tp1>)): Test implicit convetsion.
        (auto_ptr::~auto_ptr): Use this->get() instead of _M_ptr.
        (auto_ptr::operator*): Likewise.
        (auto_ptr::operator->): Likewise.
        (auto_ptr::release): Likewise.
        (auto_ptr::reset): Likewise.
        (auto_ptr::auto_ptr(auto_ptr_ref)): Initialize from __ref._M_release.
        (auto_ptr::operator auto_ptr_rev<_Tp1>): Updated.
        Define nested auto_ptr_ref unless _GLIBCPP_RESOLVE_LIB_DEFECTS.
        Define operator=(auto_ptr_ref) if _GLIBCPP_RESOLVE_LIB_DEFECTS.

From-SVN: r34792
libstdc++-v3/ChangeLog
libstdc++-v3/bits/std_memory.h