diff --git a/Redcraft.Utility/Source/Public/Range/AllView.h b/Redcraft.Utility/Source/Public/Range/AllView.h index aafe707..2ffa0b7 100644 --- a/Redcraft.Utility/Source/Public/Range/AllView.h +++ b/Redcraft.Utility/Source/Public/Range/AllView.h @@ -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([] requires (requires { All(DeclVal()); }) (R && Base) + return TAdaptorClosure([] requires (requires { All(DeclVal()); }) (R&& Base) { return All(Forward(Base)); }); diff --git a/Redcraft.Utility/Source/Public/Range/FilterView.h b/Redcraft.Utility/Source/Public/Range/FilterView.h index c80e6b6..f38a80f 100644 --- a/Redcraft.Utility/Source/Public/Range/FilterView.h +++ b/Redcraft.Utility/Source/Public/Range/FilterView.h @@ -165,7 +165,7 @@ NAMESPACE_END(Range) NAMESPACE_BEGIN(Range) /** Creates A view adapter that consists of the elements of a range that satisfies a predicate. */ -template requires (requires { TFilterView(DeclVal(), DeclVal()); }) +template requires (requires { TFilterView(DeclVal(), DeclVal()); }) NODISCARD FORCEINLINE constexpr auto Filter(R&& Base, Pred&& Predicate) { return TFilterView(Forward(Base), Forward(Predicate)); @@ -175,7 +175,7 @@ NODISCARD FORCEINLINE constexpr auto Filter(R&& Base, Pred&& Predicate) template NODISCARD FORCEINLINE constexpr auto Filter(Pred&& Predicate) { - return TAdaptorClosure([&Predicate] requires (requires { Range::Filter(DeclVal(), DeclVal()); }) (R&& Base) + return TAdaptorClosure([&Predicate] requires (requires { Range::Filter(DeclVal(), DeclVal()); }) (R&& Base) { return Range::Filter(Forward(Base), Forward(Predicate)); }); diff --git a/Redcraft.Utility/Source/Public/Range/TransformView.h b/Redcraft.Utility/Source/Public/Range/TransformView.h index afa94ce..d5c0d50 100644 --- a/Redcraft.Utility/Source/Public/Range/TransformView.h +++ b/Redcraft.Utility/Source/Public/Range/TransformView.h @@ -212,7 +212,7 @@ NAMESPACE_END(Range) NAMESPACE_BEGIN(Range) /** Creates A view adapter of a sequence that applies a transformation function to each element. */ -template requires (requires { TTransformView(DeclVal(), DeclVal()); }) +template requires (requires { TTransformView(DeclVal(), DeclVal()); }) NODISCARD FORCEINLINE constexpr auto Transform(R&& Base, F&& Func) { return TTransformView(Forward(Base), Forward(Func)); @@ -222,7 +222,7 @@ NODISCARD FORCEINLINE constexpr auto Transform(R&& Base, F&& Func) template NODISCARD FORCEINLINE constexpr auto Transform(F&& Func) { - return TAdaptorClosure([&Func] requires (requires { Range::Transform(DeclVal(), DeclVal()); }) (R&& Base) + return TAdaptorClosure([&Func] requires (requires { Range::Transform(DeclVal(), DeclVal()); }) (R&& Base) { return Range::Transform(Forward(Base), Forward(Func)); });