Subject: Re: [boost] Can we suppress integer_traits warnings?
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2009-10-27 18:34:34
Steven Watanabe wrote:
> Mateusz Loskot wrote:
>> John Maddock wrote:
>>>> It is also possible to suppress this warning by a command line
>>>> switch -Wno-long-long
>>> Sure, but we need to fix the *library header file* so it doesn't emit
>>> warnings even when the user has asked for those warnings: we do this
>>> already for long long usage within Boost, but I can't find a
>>> workaround for constants with LL suffixes.
>> Hmm, it may even look like violation of the Boost guideline:
>> "Don't declare integral constant expressions whose type is
>> wider than int."
> This is irrelevant since constant in question is LLONG_MAX.
> There's no way around a large integer constant. In addition,
> this code in question is in the middle of a bunch of compiler
> #ifdefs, so portability issues should already be handled.
Thank you for clarification, makes sense.
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk