#*~§$& VC6 STL port...

G

Gernot Frisch

this thingy:

void foo()
{
std::map<std::string, int> mp;
std::string st = "Name";
mp[st] = 15;
}

compiles to:
VC98\INCLUDE\functional(86) : error C2784:
'bool __cdecl std::eek:perator <(const class std::multimap<_K,_Ty,_Pr,_A>
&,
const class std::multimap<_K,_Ty,_Pr,_A>
&)'
: Vorlagenargument fuer 'const class std::multimap<_K,_Ty,_Pr,_A> &'
von
'const class std::basic_string<char,struct std::char_traits<char>,
class std::allocator<char> >'
konnte nicht hergeleitet werden

\VC98\INCLUDE\functional(86) :
Bei der Kompilierung der Member-Funktion
'bool __thiscall std::less<class std::basic_string<
char,struct
std::char_traits said:
::eek:perator ()
(const class std::basic_string<
char,struct
std::char_traits<char>,
class std::allocator<char> > &,
const class std::basic_string<
char,struct
std::char_traits<char>,
class std::allocator<char> > &
)const'
der Klassenvorlage



--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
 
K

Karl Heinz Buchegger

Gernot said:
this thingy:

void foo()
{
std::map<std::string, int> mp;
std::string st = "Name";
mp[st] = 15;
}

compiles to:
VC98\INCLUDE\functional(86) : error C2784:
'bool __cdecl std::eek:perator <(const class std::multimap<_K,_Ty,_Pr,_A>
&,
const class std::multimap<_K,_Ty,_Pr,_A>
&)'
: Vorlagenargument fuer 'const class std::multimap<_K,_Ty,_Pr,_A> &'
von
'const class std::basic_string<char,struct std::char_traits<char>,
class std::allocator<char> >'
konnte nicht hergeleitet werden

That smells like a missing header.
Check your includes.
 

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

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top