mirror of
https://github.com/boostorg/system.git
synced 2025-05-12 05:31:49 +00:00
36 lines
631 B
C++
36 lines
631 B
C++
// Copyright 2022 Peter Dimov.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/system/error_code.hpp>
|
|
#include <boost/config.hpp>
|
|
#include <boost/config/pragma_message.hpp>
|
|
|
|
#if defined(BOOST_GCC) && BOOST_GCC >= 40700 && BOOST_GCC < 40800
|
|
|
|
BOOST_PRAGMA_MESSAGE("Skipping test, BOOST_GCC is 407xx")
|
|
|
|
#else
|
|
|
|
struct X
|
|
{
|
|
boost::system::error_code ec;
|
|
};
|
|
|
|
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
|