Boost logo

Boost Users :

Subject: Re: [Boost-users] [format] warning...warning...warning
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-03-23 21:35:15


AMDG

On 03/23/2017 01:51 PM, Oswin Krause wrote:
> On 2017-03-23 16:43, Steven Watanabe via Boost-users wrote:
>>
>>> The warnings were as trivial as (for example):
>>> ../ext/boost/boost/type_traits/is_default_constructible.hpp:16:22:
>>> warning: "BOOST_GCC_VERSION_WORKAROUND_GUARD" is not defined [-Wundef]
>>> #if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40700)
>>>
>>
>> <snip>
>
> in this specific case the warning is not a false positive, or useless,
> at elast as far as i udnerstand it. BOOST_GCC_VERSION_WORKAROUND_GUARD
> is really not defined anywhere in boost, so this #ifdef block will never
> be used.

  No, that's wrong. BOOST_WORKAROUND is intentionally
written so that an undefined XXX_WORKAROUND_GUARD
functions correctly. In fact, the sole purpose of
BOOST_GCC_VERSION_WORKAROUND_GUARD is to suppress the
warning about BOOST_GCC_VERSION not being defined
(However, keeping a single global list of macros isn't
scalable, and it appears that the list isn't up-to-date).

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net