This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Quick test..
- To: Alex Buell <alex dot buell at tahallah dot demon dot co dot uk>
- Subject: Re: Quick test..
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 08 Sep 1998 23:44:49 z
- Cc: Linux-Egcs <egcs at cygnus dot com>
- References: <Pine.LNX.3.96.980903125321.174A-100000@lo-pc3035a>
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