From a543c7394da7b735478edb2ba66fe743cfd21bfc Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Mon, 1 Apr 2019 00:17:30 +0300 Subject: [PATCH] The right way to disable C++17+ tests on C++11 --- test/tensor/Jamfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/tensor/Jamfile b/test/tensor/Jamfile index 0bbf2c569..2dd859da9 100644 --- a/test/tensor/Jamfile +++ b/test/tensor/Jamfile @@ -6,11 +6,12 @@ # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) +import ../../../../config/checks/config : requires ; + project boost/ublas/test/tensor : requirements - # these tests require C++17 - 11:no gcc:"-Wall -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-but-set-variable" + [ requires cxx17_if_constexpr ] ; alias unit_test_framework