[libcxx] r209888 - Add a _LIBCPP_CONSTEXPR that was missed in r170026.

Nico Weber nicolasweber at gmx.de
Fri May 30 05:09:47 PDT 2014


Author: nico
Date: Fri May 30 07:09:47 2014
New Revision: 209888

URL: http://llvm.org/viewvc/llvm-project?rev=209888&view=rev
Log:
Add a _LIBCPP_CONSTEXPR that was missed in r170026.

(clang doesn't complain about this, but gcc does.  This is necessary for a
follow-up patch that will enable _LIBCPP_CONSTEXPR for gcc.)

Modified:
    libcxx/trunk/include/limits

Modified: libcxx/trunk/include/limits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/limits?rev=209888&r1=209887&r2=209888&view=diff
==============================================================================
--- libcxx/trunk/include/limits (original)
+++ libcxx/trunk/include/limits Fri May 30 07:09:47 2014
@@ -768,7 +768,7 @@ template <class _Tp>
 template <class _Tp>
     _LIBCPP_CONSTEXPR const int numeric_limits<const volatile _Tp>::digits10;
 template <class _Tp>
-    const int numeric_limits<const volatile _Tp>::max_digits10;
+    _LIBCPP_CONSTEXPR const int numeric_limits<const volatile _Tp>::max_digits10;
 template <class _Tp>
     _LIBCPP_CONSTEXPR const bool numeric_limits<const volatile _Tp>::is_signed;
 template <class _Tp>





More information about the cfe-commits mailing list