Skip to content

Commit 7bbc9b2

Browse files
committed
The right way to disable C++17+ tests on C++11
1 parent 782ce16 commit 7bbc9b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/tensor/Jamfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
77
# http://www.boost.org/LICENSE_1_0.txt)
88

9+
import config : requires ;
10+
911
project boost/ublas/test/tensor
1012
: requirements
11-
# these tests require C++17
12-
<cxxstd>11:<build>no
1313
<toolset>gcc:<cxxflags>"-Wall -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-but-set-variable"
14+
[ requires cxx17_if_constexpr ]
1415
;
1516

1617
alias unit_test_framework

0 commit comments

Comments
 (0)