From: Matthias Schabel (boost_at_[hidden])
Date: 2007-02-13 15:02:49
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
I could be convinced otherwise...
> may I suggest that none of these are helpful warnings and should be
> 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
> rest of code ....
> #ifdef BOOST_MSVC
> # pragma warning(pop)
> #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