From fafebc79f157dfec357e5142d827b4523dcb14e9 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Mon, 1 Apr 2019 00:01:16 +0300 Subject: [PATCH] The right way to disable C++11+ tests on C++03 --- test/Jamfile.v2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 502ee419c..926942e94 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -4,6 +4,8 @@ # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +import config : requires ; + # bring in rules for testing import testing ; @@ -81,9 +83,8 @@ test-suite "odeint" [ run step_size_limitation.cpp ] [ run integrate_overflow.cpp ] [ compile unwrap_boost_reference.cpp ] - [ compile unwrap_reference.cpp : -std=c++0x : unwrap_reference_C++11 ] - [ compile-fail unwrap_reference.cpp : -std=c++98 : unwrap_reference_C++98 ] - [ compile std_array.cpp : -std=c++0x ] + [ compile unwrap_reference.cpp : [ requires cxx11_hdr_functional ] ] + [ compile std_array.cpp : [ requires cxx11_hdr_array ] ] : valgrind ;