Work around Clang 3.5..3.8 failure in constexpr_test2

This commit is contained in:
Peter Dimov
2023-01-10 05:14:36 +02:00
parent 583cd8dba2
commit 36e3b2c6ae

View File

@ -19,8 +19,17 @@ struct X
X const& f()
{
#if defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION < 30900
BOOST_STATIC_CONSTEXPR X x = {};
return x;
#else
BOOST_STATIC_CONSTEXPR X x;
return x;
#endif
}
#endif