help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

map::data_type missing in gcc 4 ?


From: vheinitz
Subject: map::data_type missing in gcc 4 ?
Date: Thu, 6 Dec 2007 08:46:01 -0800 (PST)
User-agent: G2/1.0

Hello,
I am porting code which was compiling on gcc 3.2.2 to gcc 4
I am using (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
Looks like std::map hasn't typedef data_type whereas map::key_type is
still there.

SGI's implementation seems to provide map::data_type

Is there any other way to get data_type from std::map?

P.S.: Code I have to port has sth. like this:
template<typename T>
T::data_type GetSomeDataFromMap( T m )
{
   return m[0];
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]