locale::id really needs to be constructed at compile time.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2012-07-26 16:14:37 +00:00
parent 0405cc4ae0
commit f3d62ea57f

View File

@ -119,7 +119,7 @@ class _LIBCPP_VISIBLE locale::id
static int32_t __next_id;
public:
_LIBCPP_INLINE_VISIBILITY id() {}
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR id() :__id_(0) {}
private:
void __init();
void operator=(const id&); // = delete;