[libc++] Revert a use of `static_cast` for `_VSTD::forward`. NFCI.

As requested in D107584.

Differential Revision: https://reviews.llvm.org/D108743
This commit is contained in:
Arthur O'Dwyer 2021-08-25 19:40:03 -04:00
parent d383df32c0
commit 15acca5ccd
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include <__concepts/convertible_to.h> #include <__concepts/convertible_to.h>
#include <__config> #include <__config>
#include <__utility/forward.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header #pragma GCC system_header
@ -27,7 +28,7 @@ concept __boolean_testable_impl = convertible_to<_Tp, bool>;
template<class _Tp> template<class _Tp>
concept __boolean_testable = __boolean_testable_impl<_Tp> && requires(_Tp&& __t) { 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) #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CONCEPTS)