|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-12-04 11:10:23
on Fri Nov 30 2007, "Paul A Bristow" <pbristow-AT-hetp.u-net.com> wrote:
> I've seen similar and supressed with a bracket of
>
> #if defined (BOOST_MSVC)
> # pragma warning(push)
> # pragma warning(disable: 4512) // "assignment operator could not be generated."
> # pragma warning(disable: 4127) // "conditional expression is constant."
> # pragma warning(disable: 4100) // "'boost_parameter_enabler_argument' : unreferenced formal parameter"
> #endif
>
> your includes
>
> your code....
>
>
> #if defined (BOOST_MSVC)
> # pragma warning(pop)
> #endif
>
>
> But it really would be nice if *All* Boost code could have warnings
> suppressed properly. The situation is imporoving, but we have some
> way to go.
I think we need to have standard boost-wide prefix and suffix headers
for that purpose, or the code will quickly become unmaintainable.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk