|
Boost : |
Subject: Re: [boost] Can we suppress integer_traits warnings?
From: John Maddock (john_at_[hidden])
Date: 2009-10-26 07:45:06
> gcc has a pragma to do just that
> #pragma GCC diagnostic ignored "-Wlong-long"
That doesn't help us because we can't use that in the integer_traits.hpp
header to suppress the warning in one place and then reset it back to it's
original state. Also the gcc docs say:
"Also, while it is syntactically valid to put these pragmas anywhere in your
sources, the only supported location for them is before any data or
functions are defined. "
So basically only end users can use the pragma (at the start of a source
file before any headers are #included) which again doesn't help us library
authors :-(
Cheers, John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk