aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/include/tuple
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/include/tuple')
-rw-r--r--contrib/llvm-project/libcxx/include/tuple4
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;