[cfe-commits] [libcxx] r160785 - /libcxx/trunk/include/__locale

Howard Hinnant hhinnant at apple.com
Thu Jul 26 09:14:38 PDT 2012


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;





More information about the cfe-commits mailing list