|
Boost Testing : |
Subject: Re: [Boost-testing] conventions for requiring and selecting language versions
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2019-03-21 21:21:08
AMDG
On 3/21/19 2:53 PM, stefan via Boost-Testing wrote:
>
> I have started to use the `cxxstd` property to express project
> requirements.
Please don't. It's not intended for that purpose
and won't work reliably (as you seem to have discovered).
Express it in terms of Boost.Config instead.
> However, I noticed that quite a few test runners use
> `cxxflags` to add flags such as `-std=c++11`, thereby bypassing the
> boost.build filtering logic.
>
> What is the suggested way to solve this ? Shouldn't we require users to
> use `cxxstd` rather than `<cxxflags>-std=...` ? Or if not, add some
> logic to Boost.Build to discover the presence of these values in
> `cxxflags` and automagically translate them into the corresponding
> `cxxstd` values ?
>
In Christ,
Steven Watanabe