diff --git a/test/make_from_tuple_cx.cpp b/test/make_from_tuple_cx.cpp index 7f2f1ab..70b7ff2 100644 --- a/test/make_from_tuple_cx.cpp +++ b/test/make_from_tuple_cx.cpp @@ -62,6 +62,10 @@ int main() static_assert( r.z == 3, "r.z == 3" ); } +#if defined( __clang_major__ ) && __clang_major__ == 3 && __clang_minor__ < 9 +// "error: default initialization of an object of const type 'const std::tuple<>' without a user-provided default constructor" +#else + { constexpr std::tuple<> tp; @@ -71,6 +75,8 @@ int main() static_assert( r.y == 0, "r.y == 0" ); static_assert( r.z == 0, "r.z == 0" ); } + +#endif } #endif diff --git a/test/tuple_apply_cx.cpp b/test/tuple_apply_cx.cpp index 785d5a8..2fce51b 100644 --- a/test/tuple_apply_cx.cpp +++ b/test/tuple_apply_cx.cpp @@ -56,11 +56,17 @@ int main() static_assert( r == 123, "r == 123" ); } +#if defined( __clang_major__ ) && __clang_major__ == 3 && __clang_minor__ < 9 +// "error: default initialization of an object of const type 'const std::tuple<>' without a user-provided default constructor" +#else + { constexpr std::tuple<> tp; constexpr auto r = boost::mp11::tuple_apply( h, tp ); static_assert( r == 11, "r == 11" ); } + +#endif } #endif diff --git a/test/tuple_for_each_cx.cpp b/test/tuple_for_each_cx.cpp index 55e8d15..f6960f6 100644 --- a/test/tuple_for_each_cx.cpp +++ b/test/tuple_for_each_cx.cpp @@ -38,6 +38,7 @@ int main() } #if defined( __clang_major__ ) && __clang_major__ == 3 && __clang_minor__ < 9 +// "error: default initialization of an object of const type 'const std::tuple<>' without a user-provided default constructor" #else {