diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-07-26 16:14:37 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-07-26 16:14:37 +0000 |
commit | f3d62ea57ff9ac61c5fd9860713d2d0f781f9e12 (patch) | |
tree | a166255ebd5d922fbc152c6318a9975377cc3f78 | |
parent | 0405cc4ae0b74bab1f30830aa7bb03077b8280a6 (diff) | |
download | external_libcxx-f3d62ea57ff9ac61c5fd9860713d2d0f781f9e12.tar.gz external_libcxx-f3d62ea57ff9ac61c5fd9860713d2d0f781f9e12.tar.bz2 external_libcxx-f3d62ea57ff9ac61c5fd9860713d2d0f781f9e12.zip |
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
-rw-r--r-- | include/__locale | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/__locale b/include/__locale index b1e07113e..f23e03545 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; |