I'm using STL and I'm getting hundreds of these, which makes it hard to
find warnings that I probably could (and should) do something about.
I've tried
#pragma warning( disable : 4786 )
and
#pragma warning( disable : C4786 )
and neither has any affect.
Norm
--
--
To reply, change domain to an adult feline.
#pragma warning( disable : 4786 ) should work fine. Where have you put it?
--
Guido Stercken-Sorrenti
MVP - Visual Developer / Visual C++
Cheers,
Stoyan
"Norman Bullen" <no...@BlackKittenAssociates.com.INVALID> wrote in message
news:QY2ge.370$OU1...@newsread3.news.pas.earthlink.net...
You should avoid putting STL #include's in your header file.
With the #include's in your CPP file, try moving they're location up and
down, but always after the stdafx.h include.
And make sure it's before the "#ifdef _DEBUG"
Mr Wieland's code contains the following comment:
// BUG: C4786 Warning Is Not Disabled with #pragma Warning
// STATUS: Microsoft has confirmed this to be a bug in the Microsoft
product.
// This warning can be ignored. This occured only in the <map> container.
As it happens, I am using the map container so it looks like I'm out of
luck.
Norm
I've found that 4786 can be disabled if you put it in your PCH file at the
top. I think it's not as clear-cut as "it never works".
-cd
Dragos
--
- Mark Randall
http://zetech.swehli.com
"Carl Daniel [VC++ MVP]" <cpdaniel_remove...@mvps.org.nospam>
wrote in message news:uvKMw4cV...@TK2MSFTNGP10.phx.gbl...