Subject: Re: [boost] [config] Rethinking feature macros?
From: Peter Dimov (lists_at_[hidden])
Date: 2017-11-06 18:50:30
Andrey Semashev wrote:
> On 11/06/17 21:03, Peter Dimov via Boost wrote:
> > Steven Watanabe wrote:
> >> We don't usually define macros independently for every compiler
> >> version. The actual implementation generally looks like:
> >> #if COMPILER_VERSION < NNN
> >> #define BOOST_NO_FEATURE
> >> #endif
> >> which is always the same amount of work regardless of whether it's a
> >> positive or negative macro.
> > This ignores -std=... though.
> We also test for BOOST_GCC_CXX11 or __cplusplus to take that into account.
Yes, it's the same either way, I guess.
#if COMPILER_VERSION < NNN || COMPILER_CXX < 17
# define BOOST_NO_CXX17_FEATURE
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk