[libcxx-commits] [libcxx] e3eb61a - [libc++][NFC] Fix leftover #endif comments

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 11 09:25:33 PST 2023


Author: Louis Dionne
Date: 2023-02-11T09:25:16-08:00
New Revision: e3eb61a8cd61736d529bf18edd5f34e6645f952e

URL: https://github.com/llvm/llvm-project/commit/e3eb61a8cd61736d529bf18edd5f34e6645f952e
DIFF: https://github.com/llvm/llvm-project/commit/e3eb61a8cd61736d529bf18edd5f34e6645f952e.diff

LOG: [libc++][NFC] Fix leftover #endif comments

Added: 
    

Modified: 
    libcxx/include/__utility/pair.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__utility/pair.h b/libcxx/include/__utility/pair.h
index 547332b4c90b..9d8be526b625 100644
--- a/libcxx/include/__utility/pair.h
+++ b/libcxx/include/__utility/pair.h
@@ -372,7 +372,7 @@ struct _LIBCPP_TEMPLATE_VIS pair
         second = std::forward<_U2>(__p.second);
         return *this;
     }
-#endif // _LIBCPP_STD_VER > 20
+#endif // _LIBCPP_STD_VER >= 23
 
     template <class _Tuple, typename enable_if<
             _CheckTLC<_Tuple>::template __enable_assign<_Tuple>()
@@ -505,7 +505,7 @@ template <class _T1, class _T2, class _U1, class _U2>
 struct common_type<pair<_T1, _T2>, pair<_U1, _U2>> {
     using type = pair<common_type_t<_T1, _U1>, common_type_t<_T2, _U2>>;
 };
-#endif // _LIBCPP_STD_VER > 20
+#endif // _LIBCPP_STD_VER >= 23
 
 template <class _T1, class _T2>
 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20


        


More information about the libcxx-commits mailing list