Fix missing return in __tuple_leaf::__can_bind_reference when __reference_binds_to_temporary added in r323380.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@323389 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -175,6 +175,8 @@ class __tuple_leaf
|
|||||||
static constexpr bool __can_bind_reference() {
|
static constexpr bool __can_bind_reference() {
|
||||||
#if __has_keyword(__reference_binds_to_temporary)
|
#if __has_keyword(__reference_binds_to_temporary)
|
||||||
return !__reference_binds_to_temporary(_Hp, _Tp);
|
return !__reference_binds_to_temporary(_Hp, _Tp);
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user