This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc 3.1: I get a strange warning using it.
- From: Andrea Latina <andrea dot latina at lnl dot infn dot it>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 20 May 2002 09:13:23 +0200
- Subject: gcc 3.1: I get a strange warning using it.
hi all,
I just installed gcc 3.1 on my redhat-linux-i686, with:
configure --enable-thread.
When I compile this:
template <class T> NewFile &operator << (const std::list<T> &l )
{
*this << l.size();
std::list<T>::const_iterator i = l.begin();
for (; i != l.end(); i++) *this << *i;
return *this;
}
I get this warning:
/home/latina/PRISMA/development/andrix/include/File.hh: In member function
`NewFile& NewFile::operator<<(const std::list<T, std::allocator<_CharT>
>&)':
/home/latina/PRISMA/development/andrix/include/File.hh:81: warning:
`typename
std::list<T, std::allocator<_CharT> >::const_iterator' is implicitly a
typename
/home/latina/PRISMA/development/andrix/include/File.hh:81: warning:
implicit
typename is deprecated, please see the documentation for details
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
what is this???????
where should I look to get more details about this warning?
or, just for I need to compile quickly my sources and I dislike
warnings... which syntax is it actually the correct one?
thanks,
andrea
ps: all those souces have been always compiled, using gcc-3.0.4, without
any message.