Author: hhinnant
Date: Thu Jul 26 11:14:37 2012
New Revision: 160785

URL: http://llvm.org/viewvc/llvm-project?rev=160785&view=rev
Log:
locale::id really needs to be constructed at compile time.

Modified:
    libcxx/trunk/include/__locale

Modified: libcxx/trunk/include/__locale
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__locale?rev=160785&r1=160784&r2=160785&view=diff
==============================================================================
--- libcxx/trunk/include/__locale (original)
+++ libcxx/trunk/include/__locale Thu Jul 26 11:14:37 2012
@@ -119,7 +119,7 @@
 
     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;


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to