From f3d62ea57ff9ac61c5fd9860713d2d0f781f9e12 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 26 Jul 2012 16:14:37 +0000 Subject: [PATCH] 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 --- include/__locale | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/__locale b/include/__locale index b1e07113..f23e0354 100644 --- a/include/__locale +++ b/include/__locale @@ -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;