Przeglądaj źródła

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
Eric Fiselier 7 lat temu
rodzic
commit
8592d0abce
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      include/tuple

+ 2 - 0
include/tuple

@@ -175,6 +175,8 @@ class __tuple_leaf
     static constexpr bool __can_bind_reference() {
 #if __has_keyword(__reference_binds_to_temporary)
       return !__reference_binds_to_temporary(_Hp, _Tp);
+#else
+      return true;
 #endif
     }