Put std::piecewise_construct_t back into the dylib for ABI stability. When clients are in C++11/constexpr mode this will be safely ignored because piecewise_construct is then declared with internal linkage.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@153981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -206,7 +206,7 @@ move_if_noexcept(_Tp& __x) _NOEXCEPT
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct _LIBCPP_VISIBLE piecewise_construct_t { };
|
struct _LIBCPP_VISIBLE piecewise_construct_t { };
|
||||||
#ifdef _LIBCPP_HAS_NO_CONSTEXPR
|
#if defined(_LIBCPP_HAS_NO_CONSTEXPR) || defined(_LIBCPP_BUILDING_UTILITY)
|
||||||
extern const piecewise_construct_t piecewise_construct;// = piecewise_construct_t();
|
extern const piecewise_construct_t piecewise_construct;// = piecewise_construct_t();
|
||||||
#else
|
#else
|
||||||
constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
|
constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
|
||||||
|
@@ -7,12 +7,11 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#define _LIBCPP_BUILDING_UTILITY
|
||||||
#include "utility"
|
#include "utility"
|
||||||
|
|
||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
#ifdef _LIBCPP_HAS_NO_CONSTEXPR
|
|
||||||
const piecewise_construct_t piecewise_construct = {};
|
const piecewise_construct_t piecewise_construct = {};
|
||||||
#endif
|
|
||||||
|
|
||||||
_LIBCPP_END_NAMESPACE_STD
|
_LIBCPP_END_NAMESPACE_STD
|
||||||
|
Reference in New Issue
Block a user