[libcxx] r323389 - Fix missing return in __tuple_leaf::__can_bind_reference when __reference_binds_to_temporary added in r323380.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 15:10:02 PST 2018
Author: ericwf
Date: Wed Jan 24 15:10:02 2018
New Revision: 323389
URL: http://llvm.org/viewvc/llvm-project?rev=323389&view=rev
Log:
Fix missing return in __tuple_leaf::__can_bind_reference when __reference_binds_to_temporary added in r323380.
Modified:
libcxx/trunk/include/tuple
Modified: libcxx/trunk/include/tuple
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/tuple?rev=323389&r1=323388&r2=323389&view=diff
==============================================================================
--- libcxx/trunk/include/tuple (original)
+++ libcxx/trunk/include/tuple Wed Jan 24 15:10:02 2018
@@ -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
}
More information about the cfe-commits
mailing list