Thread: c++ noob stuff
View Single Post
Re: c++ noob stuff
Old
  (#3)
commonbullet
Member
 
commonbullet's Avatar
 
Status: Offline
Posts: 49
Join Date: Nov 2004
Default Re: c++ noob stuff - 05-11-2006

Quote:
Originally Posted by @$3.1415rin View Post
if you want to have the value of a character, you have to use 'a' instead of "A". the latter would give you a pointer to a char array containing an 'A' and a '\0'
Sorry, I didn't get it. I don't mean to get a char value..., I'm pretty stupid with this.

Anyway I found this:
Quote:
When using the STL with MSVC, you may get one or more error messages that look like:

C:\MSOE\stltest\stl2\stl2.cpp(302) : warning C4786: 'std::pair<std::_Tree <int,int, std::set<int,std::less<int>, std::allocator<int>>::_Kfn, std::less<int>, std::allocator<int>>::const_iterator, std::_Tree<int,int, std::set<int,std::less<int>, std::allocator<int>>::_Kfn, std::less<int>, std::allocator<int>>::const_iterator>' : identifier was truncated to '255' characters in the debug information

This message results when MSVC tries to store debug information that includes long names generated by the template expansion process. The problem normally has no significant effect, and the message can be ignored. You may prefer to suppress this warning completely, as it may hide other (more important) error messages. To suppress the warning, add the following line near the top of your program source file:
#pragma warning(disable:4786)
out there:
http://www.msoe.edu/eecs/cese/resour...space%20issues

So, maybe it's an old implementation of stl on msvc. I've compiled a similar code with a newer msvc++ (express version) with no warnings. dev-c++ also compiles it with no problems...
  
Reply With Quote