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.

llvm-svn: 153981
This commit is contained in:
Howard Hinnant 2012-04-03 23:45:46 +00:00
parent 3e66d73259
commit 7e5b4c9328
2 changed files with 2 additions and 3 deletions

View File

@ -206,7 +206,7 @@ move_if_noexcept(_Tp& __x) _NOEXCEPT
}
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();
#else
constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();

View File

@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
#define _LIBCPP_BUILDING_UTILITY
#include "utility"
_LIBCPP_BEGIN_NAMESPACE_STD
#ifdef _LIBCPP_HAS_NO_CONSTEXPR
const piecewise_construct_t piecewise_construct = {};
#endif
_LIBCPP_END_NAMESPACE_STD