Site Archive (Complete)
C++
Email
Discuss
Print
Reprint

add to:
Del.icio.us
Digg
Google
Spurl
Slashdot
Y! MyWeb
Blink
Furl
July 01, 2001
An STL Error Message Decryptor for Visual C++

(Page 1 of 7)
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

Figure 1: The error message produced by the program in Listing 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


Please log in to post comments.
DR. DOBB'S CAREER CENTER
Ready to take that job and shove it? open | close
Search jobs on Dr. Dobb's TechCareers
Function:

Keyword(s):

State:  
  • Post Your Resume
  • Employers Area
  • News & Features
  • Blogs & Forums
  • Career Resources

    Browse By:
    Location | Employer | City
  • Most Recent Posts:



    MICROSITES
    FEATURED TOPIC

    ADDITIONAL TOPICS

    INFO-LINK

     



    |
    Related Sites: DotNetJunkies, MSDN Magazine, SD Expo, SqlJunkies, TechNet Magazine