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: Quick test..


Alex Buell <alex.buell@tahallah.demon.co.uk> writes:

> #include <memory>
> #include <cstdlib>
> #include <iostream>

> template <int i = 20> char *
> xx (const auto_ptr<char> &c = auto_ptr<char>(new char[i]))

> test.c:7: parse error before `&'

Where's the definition of auto_ptr<T> supposed to come from, in this
case?  Did you modify some header-file?  egcs doesn't come with a
definition of it yet.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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