forked from OSchip/llvm-project
[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:
parent
d383df32c0
commit
15acca5ccd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue