Quick test..

Alexandre Oliva oliva@dcc.unicamp.br
Wed Sep 9 05:52:00 GMT 1998


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




More information about the Gcc mailing list