mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 20:47:14 +02:00
Work around Clang 3.5..3.8 failure in constexpr_test2
This commit is contained in:
@ -19,8 +19,17 @@ struct X
|
|||||||
|
|
||||||
X const& f()
|
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;
|
BOOST_STATIC_CONSTEXPR X x;
|
||||||
return x;
|
return x;
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user