Subject: Re: [boost] bjam question about "requires" negation
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-10-13 14:25:59
On 10/13/2018 08:03 AM, James E. King III via Boost wrote:
> I want to run a test that should run without explicit operator conversion
> capability and fail to compile with explicit operation conversion
> capability, but I'm not sure how to negate the requires statement. I'm
> sure it's trivial but I found no examples.
config.requires doesn't support this. You'll
have to go one level lower:
: # true-properties
: # false-properties
> I tried a bunch of things but
> none worked.
> [ run implicit_conversion.cpp
> : : : [ requires NO cxx11_explicit_conversion_operators ] :
> implicit_conversion ]
> [ compile-fail implicit_conversion.cpp
> : [ requires cxx11_explicit_conversion_operators ] :
> explicit_conversion ]
> How do I properly implement the "NO" part?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk