[libcxx] r217884 - Thanks to K-ballo for noting a second incorrect noexcept clause in tuple - and suggesting a more correct way to write the first

Marshall Clow mclow.lists at gmail.com
Tue Sep 16 10:08:21 PDT 2014


Author: marshall
Date: Tue Sep 16 12:08:21 2014
New Revision: 217884

URL: http://llvm.org/viewvc/llvm-project?rev=217884&view=rev
Log:
Thanks to K-ballo for noting a second incorrect noexcept clause in tuple - and suggesting a more correct way to write the first

Modified:
    libcxx/trunk/include/tuple

Modified: libcxx/trunk/include/tuple
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/tuple?rev=217884&r1=217883&r2=217884&view=diff
==============================================================================
--- libcxx/trunk/include/tuple (original)
+++ libcxx/trunk/include/tuple Tue Sep 16 12:08:21 2014
@@ -554,12 +554,12 @@ public:
         _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
         tuple(_Up&&... __u)
             _NOEXCEPT_((
-                is_nothrow_constructible<base(
+                is_nothrow_constructible<base,
                     typename __make_tuple_indices<sizeof...(_Up)>::type,
                     typename __make_tuple_types<tuple, sizeof...(_Up)>::type,
                     typename __make_tuple_indices<sizeof...(_Tp), sizeof...(_Up)>::type,
                     typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type,
-                    _Up...)
+                    _Up...
                 >::value
             ))
             : base_(typename __make_tuple_indices<sizeof...(_Up)>::type(),
@@ -595,7 +595,7 @@ public:
         explicit
         tuple(_Up&&... __u)
             _NOEXCEPT_((
-                is_nothrow_constructible<
+                is_nothrow_constructible<base,
                     typename __make_tuple_indices<sizeof...(_Up)>::type,
                     typename __make_tuple_types<tuple, sizeof...(_Up)>::type,
                     typename __make_tuple_indices<sizeof...(_Tp), sizeof...(_Up)>::type,





More information about the cfe-commits mailing list