forked from boostorg/system
Work around Clang 3.5..3.8 failure in constexpr_test2
This commit is contained in:
1 parent
583cd8dba2
commit
36e3b2c6ae
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user