[libcxx-commits] [PATCH] D108743: [libc++] Revert a use of `static_cast` for `_VSTD::forward`. NFCI
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 26 08:35:24 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG15acca5ccde4: [libc++] Revert a use of `static_cast` for `_VSTD::forward`. NFCI. (authored by arthur.j.odwyer).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108743/new/
https://reviews.llvm.org/D108743
Files:
libcxx/include/__concepts/boolean_testable.h
Index: libcxx/include/__concepts/boolean_testable.h
===================================================================
--- libcxx/include/__concepts/boolean_testable.h
+++ libcxx/include/__concepts/boolean_testable.h
@@ -11,6 +11,7 @@
#include <__concepts/convertible_to.h>
#include <__config>
+#include <__utility/forward.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
@@ -27,7 +28,7 @@
template<class _Tp>
concept __boolean_testable = __boolean_testable_impl<_Tp> && requires(_Tp&& __t) {
- { !static_cast<_Tp&&>(__t) } -> __boolean_testable_impl;
+ { !_VSTD::forward<_Tp>(__t) } -> __boolean_testable_impl;
};
#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CONCEPTS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108743.368894.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210826/5e933d15/attachment-0001.bin>
More information about the libcxx-commits
mailing list