Title: [msvc] Re: std::map and strings

Paul Grenyer writes:

> Hi
>
>> I have a group of data that is made up of pairs of strings.  I want to
> read
>> these pairs from a file, sort them into alphabetical order and then write
>> them to a new file.  std::map seemed to be the perfect choice, but when I
>> create a std::map<std::string, std::string> variable I get a bazillion
> C4786
>> warnings regarding identifiers being truncated to 255 characters in either
>> debugging info or browser info.  Granted the code compiles, but all the
>> warnings must indicate something that I should be doing differently.  Is
>> there a better STL choice for what I am trying to accomplish?
>
> To get rid of the warnings, create a file called disable4786.h and paste the
> following into it:
>
> /////////////////////////////
> // disable4786.h

<snip>

Outstanding!!!!!

Thanks, that helps a lot.

David

Reply via email to