Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2021-02-25 21:56:29

On 26/02/2021 10:15 am, Robert Ramey wrote:
>> Conditioning a boost test on boost version < N is equivalent to just
>> unconditionally suppressing it, no?
> No - because boost version <= 1.75 math library supports C++03 while
> other versions don't/wont.

But for a library inside of Boost itself, as soon as you commit it, it
will always remove the code. Any new Boost code cannot exist in Boost
<= 1.75, by definition.

>> Shouldn't you just check __cplusplus >= 201103 for that?
> Hmmm - is this portable on all compilers?  Is this part of config.hpp?

There are some compilers that support only part of C++11 and they do not
claim that compatibility level, but it is not unreasonable to suppress
the tests under those conditions anyway.

Certainly it will work in all of the major platforms and compilers.

Boost list run by bdawes at, gregod at, cpdaniel at, john at