Original Post
Sorry but I can't make sense of the error VC++ gives me.
typedef std::map<sockaddr_in, client_t *> myMapType; myMapType myMap; sockaddr_in sock; client_t *client = something; myMap[sock] = client;I get this error:
c:\program files\microsoft visual studio\vc98\include\functional(86) : error C2784: 'bool __cdecl std::operator <(const class std::multimap<_K,_Ty,_Pr,_A> &,const
class std::multimap<_K,_Ty,_Pr,_A> &)' : could not deduce template argument for 'const class std::multimap<_K,_Ty,_Pr,_A> &' from 'const struct sockaddr_in'
c:\program files\microsoft visual studio\vc98\include\functional(86) : while compiling class-template member function 'bool __thiscall std::less::operator ()
(const struct sockaddr_in &,const struct sockaddr_in &) const'
Something about not being able to deduce the sockaddr_in argument. Anyone know why? (the help files are no help)
[edited by - foofightr on May 31, 2003 5:37:37 PM]
[edited by - foofightr on May 31, 2003 5:43:15 PM]