This is the mail archive of the gcc@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]

Re: auto_ptr error is rather confusing


On Thu, Aug 10, 2000 at 12:56:00AM +0400, Artem Khodush wrote:
> This code compiles with current gcc (2.96) configured with --enable-libstdcxx-v3,
> because in the new c++ library, the following assignement operator was added to 
> the auto_ptr class
> 
>     auto_ptr& operator=(auto_ptr_ref<X> r) throw();
> 
> This is not in the current standard, but is in accordance with proposed resolution to
> the library defect report #127 
> (see http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-active.html#127).

Aha! Thanks! I now remember having once read about this, and together with
Ross's helpful explanation I now understand why I was confused - the comings and
goings of auto_ptr have been remarkable...

In a vague attempt to mask the fact that I appear to have used the gcc list as a
personal C++ helpline, for which I apologize, might I ask why the same fix has
not been applied to libstdc++ version 2?  It would seem sensible.

Regards

Anthony

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