From 33f28c739f783874c8916199aa043718a73c668e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 24 Oct 2018 19:03:00 +0300 Subject: [PATCH] Fix test/variant_move_construct_cx.cpp --- test/Jamfile | 2 +- test/variant_move_construct_cx.cpp | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index 459e949..4fc5f84 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -30,7 +30,7 @@ run variant_copy_construct.cpp ; compile variant_copy_construct_cx.cpp : msvc-14.0:no ; run variant_move_construct.cpp ; -compile variant_move_construct_cx.cpp ; +compile variant_move_construct_cx.cpp : [ requires cxx14_constexpr ] ; run variant_value_construct.cpp ; compile variant_value_construct_cx.cpp ; diff --git a/test/variant_move_construct_cx.cpp b/test/variant_move_construct_cx.cpp index 269607c..1e49b7f 100644 --- a/test/variant_move_construct_cx.cpp +++ b/test/variant_move_construct_cx.cpp @@ -6,13 +6,6 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt -#if !defined( __cpp_constexpr ) || __cpp_constexpr < 201603 - -// no constexpr lambda support -int main() {} - -#else - #include #include @@ -44,7 +37,7 @@ enum E template constexpr T test( V&& v ) { V v2( std::forward(v) ); - return get(v); + return get( v2 ); } int main() @@ -109,5 +102,3 @@ int main() #endif } - -#endif // constexpr lambda support