Boost logo

Boost :

Subject: Re: [boost] Boost.Build requirements to exclude GCC 5
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2019-01-14 21:05:10


>> I guess ideally speaking Boost.Config gains a new test testing for this
>> specific compiler parsing bug. But it seems a bit much to ask for this
>> just for Outcome.
>
> One option is to use the Predef checks <
> https://www.boost.org/doc/libs/release/doc/html/predef/check_utilities.html#predef.check_utilities.using_with_boost_build>.
> Another option is to implement a check program of your own.

So, stitching together from your linked docs, something like (untested):

project
    : requirements
      [ requires cxx14_variable_templates cxx14_constexpr ]
      [ predef-require "BOOST_GCC == 0" or "BOOST_GCC_VERSION >= 60000" ]
      <define>BOOST_TEST_MODULE=Outcome
      <library>../../test/build//boost_unit_test_framework
    ;

???

Niall


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk