AMDG 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: [ configure.check-target-builds ../../../libs/config/checks//cxx_explicit_conversion_operators : # true-properties <build>no : # 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?
In Christ, Steven Watanabe