diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2025-09-15 22:11:39 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2025-09-15 22:12:45 +0000 |
| commit | dee76cf2f3dace6290ccab07c2db17355994e70f (patch) | |
| tree | b1ee61885d207d9f1c0c64221b7936c3b40811a8 | |
| parent | d61c75f634cf52fdef9590601d881f85275eee9a (diff) | |
libc++: avoid use of deprecated __reference_binds_to_temporary
This was removed in upstream libc++ in commit
437ad06f762ab07d89badecdd20627db200b98d3, but as this does not apply
cleanly to the current repository, I am applying the equivalent change
in a minimally invasive way. This is needed to build with latest clang
HEAD as of today.
Reviewed by: dim
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D52530
| -rw-r--r-- | contrib/llvm-project/libcxx/include/tuple | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm-project/libcxx/include/tuple b/contrib/llvm-project/libcxx/include/tuple index 081b90c7bbec..1d39974d5a6b 100644 --- a/contrib/llvm-project/libcxx/include/tuple +++ b/contrib/llvm-project/libcxx/include/tuple @@ -302,7 +302,9 @@ class __tuple_leaf { template <class _Tp> static _LIBCPP_HIDE_FROM_ABI constexpr bool __can_bind_reference() { -# if __has_keyword(__reference_binds_to_temporary) +# if __has_keyword(__reference_constructs_from_temporary) + return !__reference_constructs_from_temporary(_Hp, _Tp); +# elif __has_keyword(__reference_binds_to_temporary) return !__reference_binds_to_temporary(_Hp, _Tp); # else return true; |
