
Problem using list<string>
Quote:
> Hi,
> I declare a variable to be
> list<string> myvariable;
> When I compile I get a large warning message for this, which I cannot read
> the end of as it truncated to 255 characters in the debug output. It looks
> something like.......
<snip evil 4786 warning>
Quote:
> Does anyone know what the warning is supposed to say? I have not had any
> problems using the list<string> so far, but I would like to be able to get
> rid of the warning.
Yes, it's saying that the debug system cannot correctly handle symbol names
that are greater than 255 characters in length and that the list<string>
construct generates symbols that are too long.
You haven't had any problems because it only affects the de{*filter*}, not the
actual code. In fact, if you try to generate a release verion, you'll note
that the warning goes away completely.
Getting rid of the warning can be somewhat difficult, due to the nature of
the preprocessor, but you'll want to start by trying merely to put:
#pragma warning(disable : 4786)
before
#include <list>
#include <string>
Hopefully that will work.