[libcxx] r201534 - Implement LWG Issue 2346: integral_constant's member functions should be marked noexcept

Marshall Clow mclow.lists at gmail.com
Mon Feb 17 14:18:52 PST 2014


Author: marshall
Date: Mon Feb 17 16:18:51 2014
New Revision: 201534

URL: http://llvm.org/viewvc/llvm-project?rev=201534&view=rev
Log:
Implement LWG Issue 2346: integral_constant's member functions should be marked noexcept

Modified:
    libcxx/trunk/include/type_traits

Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=201534&r1=201533&r2=201534&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Mon Feb 17 16:18:51 2014
@@ -236,10 +236,10 @@ struct _LIBCPP_TYPE_VIS_ONLY integral_co
     typedef _Tp               value_type;
     typedef integral_constant type;
     _LIBCPP_INLINE_VISIBILITY
-        _LIBCPP_CONSTEXPR operator value_type() const {return value;}
+        _LIBCPP_CONSTEXPR operator value_type() const _NOEXCEPT {return value;}
 #if _LIBCPP_STD_VER > 11
     _LIBCPP_INLINE_VISIBILITY
-         constexpr value_type operator ()() const {return value;}
+         constexpr value_type operator ()() const _NOEXCEPT {return value;}
 #endif
 };
 





More information about the cfe-commits mailing list