This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for member template classes
Jason Merrill <jason@cygnus.com> writes:
> I think the bug is that the standard specifies auto_ptr_ref as a nested
> class. I've brought this up before in discussions about auto_ptr.
It's not a bug, it's the only way to prevent someone from declaring a
variable of type auto_ptr_ref; this would just screw things up.
auto_ptr_ref is just a detail of implementation of auto_ptr, so it
must remain hidden.
I've recently pointed out in comp.std.c++ that auto_ptr_ref did not
have to be a template class, but the standard is finished already, so
there's not much hope or reason for modifying it, as the current
standard mechanism does work.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil