summaryrefslogtreecommitdiffstats
path: root/include/__locale
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-07-26 16:14:37 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-07-26 16:14:37 +0000
commitf3d62ea57ff9ac61c5fd9860713d2d0f781f9e12 (patch)
treea166255ebd5d922fbc152c6318a9975377cc3f78 /include/__locale
parent0405cc4ae0b74bab1f30830aa7bb03077b8280a6 (diff)
downloadexternal_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
Diffstat (limited to 'include/__locale')
-rw-r--r--include/__locale2
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;