[PATCH] D42510: [libcxx] Always allow temporary binding when __reference_binds_to_temporary doesn't exist
Tim Shen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 15:21:48 PST 2018
timshen created this revision.
timshen added reviewers: EricWF, rsmith.
Herald added a subscriber: sanjoy.
This is a follow-up to https://reviews.llvm.org/D41977.
https://reviews.llvm.org/D42510
Files:
libcxx/include/tuple
Index: libcxx/include/tuple
===================================================================
--- libcxx/include/tuple
+++ libcxx/include/tuple
@@ -175,6 +175,8 @@
static constexpr bool __can_bind_reference() {
#if __has_keyword(__reference_binds_to_temporary)
return !__reference_binds_to_temporary(_Hp, _Tp);
+#else
+ return true;
#endif
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42510.131367.patch
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/ac92a03c/attachment.bin>
More information about the cfe-commits
mailing list