|
Boost : |
Subject: Re: [boost] warning policy issue
From: Daniel James (daniel_james_at_[hidden])
Date: 2009-11-26 18:07:16
2009/11/26 Paul A. Bristow <pbristow_at_[hidden]>:
>
> My recollection (dim!) is that 7.1 works the same.
>
> Are you quite sure you are casting to the right type?
>
> Or is suppressing the line of least resistance (sounds a bit dodgy to me).
There are a few warning conditions in Visual C++ 7.1 that were removed
in later versions. I think their removal is a good indication of their
worth (the ones I've come across were certainly buggy). They should
probably just be suppressed with something like the following.
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC < 1400
#pragma warning(disable:4244)
#endif
#endif
// ....
#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk