July 01, 2001
An STL Error Message Decryptor for Visual C++
Leor Zolman
Believe it or not, there's helpful information buried in those template error messages. It just takes a little Perl to dig it out.
July 2001/An STL Error Message Decryptor for Visual C++/Figure 1
error.cpp
error.cpp(16) : error C2664: 'class std::_Tree<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,struct std::pair<class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> >
const ,int>,struct std::multimap<class std::basic_string<char,
struct std::char_traits<char>,class std::allocator<char> >,int,
struct std::less<class std::basic_string<char,struct std::
char_traits<char>,class std::allocator<char> > >,class std::
allocator<int> >::_Kfn,struct std::less<class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> >
>,class std::allocator<int> >::iterator __thiscall std::
multimap<class std::basic_string<char,struct std::char_traits<
char>,class std::allocator<char> >,int,struct std::less<class
std::basic_string<char,struct std::char_traits<char>,class std::
allocator<char> > >,class std::allocator<int> >::insert(const
struct std::pair<class std::basic_string<char,struct std::
char_traits<char>,class std::allocator<char> > const ,int> &)' :
cannot convert parameter 1 from 'const int' to 'const struct
std::pair<class std::basic_string<char,struct std::char_traits<
char>,class std::allocator<char> > const ,int> &'
Reason: cannot convert from 'const int' to 'const struct std::
pair<class std::basic_string<char,struct std::char_traits<char>,
class std::allocator<char> > const ,int>'
No constructor could take the source type, or constructor
overload resolution was ambiguous
End of Figure
1
|
2
|
3
|
4
|
5
|
6
|
7
Next Page