A C++ STL Error Message

Here’s an interesting error I got while compiling C++ code during a TopCoder SRM.

LongStraightRoad.cc:43: error: no match for ‘operator==’ in ‘dist. std::map<_Key, _Tp, _Compare, _Alloc>::find [with _Key = std::basic_string, std::allocator >, _Tp = double, _Compare = std::less, std::allocator > >, _Alloc = std::allocator, std::allocator >, double> >](((const std::basic_string, std::allocator >&)((const std::basic_string, std::allocator >*)(& dest)))) == std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = std::basic_string, std::allocator >, _Tp = double, _Compare = std::less, std::allocator > >, _Alloc = std::allocator, std::allocator >, double> >]

PS: As far as I know the new C++0x will do away with such cryptic template error messages

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree