diff --git a/test/unwrap_and_construct2.cpp b/test/unwrap_and_construct2.cpp index a0b7761..4294116 100644 --- a/test/unwrap_and_construct2.cpp +++ b/test/unwrap_and_construct2.cpp @@ -5,12 +5,11 @@ #include #include #include - -using namespace boost::system; +#include struct X { - int v{}; + int v; }; struct Y @@ -20,9 +19,18 @@ struct Y struct E { - int w{}; + int w; }; +#if !defined(BOOST_SYSTEM_HAS_BUILTIN_IS_AGGREGATE) && !( defined(__cpp_lib_is_aggregate) && __cpp_lib_is_aggregate >= 201703L ) + +BOOST_PRAGMA_MESSAGE("Test skipped, detail::is_aggregate isn't functional") +int main() {} + +#else + +using namespace boost::system; + int main() { { @@ -127,3 +135,5 @@ int main() return boost::report_errors(); } + +#endif