Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable warning C4786

Status
Not open for further replies.

LnOrS

Programmer
Apr 3, 2001
66
PT

I'm using this

#pragma warning (disable : 4786)

#include <vector>
#include <string>

typedef vector < string > StringVector;

but it didn't worked.
 
Odd... with class names like that, you should not see this error. However, this should only be a warning when _DEBUG is defined.

you can try this but just a heads up, it did not work for me when I tried it. Also, you may run into errors because of the keywords of vector and string being used in the include. Not sure on that.

#ifdef _DEBUG
#define vector A
#define string B
#endif


#include <vector>
#include <string>


typedef vector < string > StringVector;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top