From 88dceba219df101ee213ad50f99b79839d3b9d47 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 13 May 2017 00:14:26 +0300 Subject: [PATCH] constexpr tuple<> tp doesn't work on clang < 3.9 --- test/tuple_for_each_cx.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tuple_for_each_cx.cpp b/test/tuple_for_each_cx.cpp index 85189d0..305d737 100644 --- a/test/tuple_for_each_cx.cpp +++ b/test/tuple_for_each_cx.cpp @@ -37,11 +37,16 @@ int main() (void)r; } +#if defined( __clang_major__ ) && __clang_major__ == 3 && __clang_minor__ < 9 +#else + { constexpr std::tuple<> tp; constexpr auto r = boost::tuple_for_each( tp, 11 ); static_assert( r == 11, "r == 11" ); } + +#endif } #endif