[libcxx-commits] [libcxx] 5d4281d - [libc++] Gives ignore external linkage.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 31 08:22:57 PDT 2023
Author: Mark de Wever
Date: 2023-05-31T17:22:52+02:00
New Revision: 5d4281d5493c7a2fc09d9ac9fc5b374676a4d8af
URL: https://github.com/llvm/llvm-project/commit/5d4281d5493c7a2fc09d9ac9fc5b374676a4d8af
DIFF: https://github.com/llvm/llvm-project/commit/5d4281d5493c7a2fc09d9ac9fc5b374676a4d8af.diff
LOG: [libc++] Gives ignore external linkage.
A slightly different fix is in D144994.
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D151490
Added:
Modified:
libcxx/include/tuple
Removed:
################################################################################
diff --git a/libcxx/include/tuple b/libcxx/include/tuple
index fe7432f44310..e4119cf2ec02 100644
--- a/libcxx/include/tuple
+++ b/libcxx/include/tuple
@@ -1508,9 +1508,13 @@ struct __ignore_t
const __ignore_t& operator=(_Tp&&) const {return *this;}
};
+# if _LIBCPP_STD_VER >= 17
+inline constexpr __ignore_t<unsigned char> ignore = __ignore_t<unsigned char>();
+# else
namespace {
constexpr __ignore_t<unsigned char> ignore = __ignore_t<unsigned char>();
} // namespace
+# endif
template <class... _Tp>
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14
More information about the libcxx-commits
mailing list