|
Boost : |
From: Matthias Schabel (boost_at_[hidden])
Date: 2007-02-13 15:02:49
Hi Paul,
Thanks for the tip. I'm a little uneasy committing this to the
library itself; I sort of feel
that deciding what level of warning you want is up to the user of the
library. Naturally,
I could be convinced otherwise...
Matthias
> may I suggest that none of these are helpful warnings and should be
> suppressed:
>
> After the boost includes (to make sure BOOST_MSVC is defined).
>
> #if defined (BOOST_MSVC)
> # pragma warning(push)
> # pragma warning(disable: 4127) // conditional expression is constant
> # pragma warning(disable: 4100) // unreferenced formal parameter
> // or comment out the parameter thus /* unused_one */
> # pragma warning(disable: 4512) // assignment operator could not
> be generated
> #endif
>
> rest of code ....
>
>
> #ifdef BOOST_MSVC
> # pragma warning(pop)
> #endif
>
> #endif // BOOST_UNITS
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk