
18 Nov
2009
18 Nov
'09
11 a.m.
Paul A. Bristow wrote:
||# pragma warning(disable: 4800) // int' : forcing value to bool 'true' or 'false'
Hope this is better.
I note that this will mean quite a lot of work for some people as "if (ptr) ..." is such a common (and IMO dreadful) idiom.
IIRC the warning isn't generated in that context. -- Daniel Wallin BoostPro Computing http://www.boostpro.com