From a2df82b98e2e55019180b0c8de88211954de0646 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 17 Feb 2014 22:18:51 +0000 Subject: [PATCH] Implement LWG Issue 2346: integral_constant's member functions should be marked noexcept git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@201534 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/type_traits | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/type_traits b/include/type_traits index 3e3d8b7b..4f84a0a5 100644 --- a/include/type_traits +++ b/include/type_traits @@ -236,10 +236,10 @@ struct _LIBCPP_TYPE_VIS_ONLY integral_constant 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 };