![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
vector problem
// in class declaration (public)
std::vector<std::string> errorArray;
void Engine::AddError(std::string error)
{
errorArray.push_back(error);
}I don't see the problem... Microsoft Visual Studio 6.0 (the best) Wierd errors... --------------------Configuration: SED - Win32 Debug--------------------
Compiling...
SED.cpp
c:\program files\microsoft visual studio\vc98\include\vector(142) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(142) : while compiling class-template member function 'void __thiscall std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_st
ring<char,std::char_traits<char>,std::allocator<char> > > >::push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
c:\program files\microsoft visual studio\vc98\include\vector(142) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std
::basic_string<char,std::char_traits<char>,std::allocator<char> > &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,int>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(142) : while compiling class-template member function 'void __thiscall std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_st
ring<char,std::char_traits<char>,std::allocator<char> > > >::push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
Linking...
SED.dll - 0 error(s), 2 warning(s)
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,253
Rep Power: 5
![]() |
Have a look here
It's a problem with the debugger that comes with VC++; it cannot handle names longer than 255 characters, which means you can't step through the code correctly when debugging. When doing things with non-trivial templates (which includes the STL) it is possible to exceed the limit of 255. If you are not planning to step through the offending code with a debugger, you can generally ignore the warning. The warning also won't occur when doing release builds (as one attribute of release builds is turning off debugging support). As an aside, even Microsoft don't claim that VC++ 6.0 is "the best". |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|