fix(range): fix DeclVal() usage in range library

This commit is contained in:
2024-12-17 14:46:03 +08:00
parent 312cfe4097
commit 00be872d5c
3 changed files with 5 additions and 5 deletions

View File

@ -152,7 +152,7 @@ NODISCARD FORCEINLINE constexpr auto All(R&& InRange)
/** Creates A view adapter that includes all elements of a range. */
NODISCARD FORCEINLINE constexpr auto All()
{
return TAdaptorClosure([]<CViewableRange R> requires (requires { All(DeclVal<R&&>()); }) (R && Base)
return TAdaptorClosure([]<CViewableRange R> requires (requires { All(DeclVal<R>()); }) (R&& Base)
{
return All(Forward<R>(Base));
});