Implicit typename

  • Thread starter Marcin Kalicinski
  • Start date
M

Marcin Kalicinski

Hi,

The following code

template<class Type> class Base::List: public std::list<Type>
{
public:
explicit List(size_type count): std::list<Type>(count) { } // this is
line 14
/*...*/
}

When compiled with gcc 3.2 gives me the following warning:

Portable/Base/List.h:14: warning: `std::list said:
::size_type' is implicitly a typename
Portable/Base/List.h:14: warning: implicit typename is deprecated, please
see
the documentation for details

What do I need to change to get rid of it?

thanks,
Marcin
 
M

Mike Wahler

Marcin Kalicinski said:
Hi,

The following code

template<class Type> class Base::List: public std::list<Type>
{
public:
explicit List(size_type count): std::list<Type>(count) { } // this is


/*...*/
}

When compiled with gcc 3.2 gives me the following warning:


Portable/Base/List.h:14: warning: implicit typename is deprecated, please

Did you:
see
the documentation for details

What do I need to change to get rid of it?

See above.

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top