public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 3.1:  I get a strange warning using it.
@ 2002-05-20  0:13 Andrea Latina
  0 siblings, 0 replies; only message in thread
From: Andrea Latina @ 2002-05-20  0:13 UTC (permalink / raw)
  To: gcc-help

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-20  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-20  0:13 gcc 3.1: I get a strange warning using it Andrea Latina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).