From f817afe6df41fecf328563e21e65c5c3a00e87ea Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Wed, 25 Dec 2024 18:17:04 +0800 Subject: [PATCH] fix(algorithms): fix compilation error on GCC for concept instantiation --- Redcraft.Utility/Source/Public/Algorithms/Search.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Algorithms/Search.h b/Redcraft.Utility/Source/Public/Algorithms/Search.h index 7bc90ff..5979b82 100644 --- a/Redcraft.Utility/Source/Public/Algorithms/Search.h +++ b/Redcraft.Utility/Source/Public/Algorithms/Search.h @@ -1209,7 +1209,7 @@ template > Proj = decltype([](T&& A) -> T&& { return Forward(A); }), CEquivalenceRelation>, TInvokeResult>> Pred = - TConditional>>, + TConditional>, TInvokeResult>>, decltype([](const LHS& A, const RHS& B) { return A == B; }), void>> requires (CBorrowedRange) NODISCARD constexpr TRangeIterator FindAdjacent(R&& Range, Pred Predicate = { }, Proj Projection = { }) @@ -1251,7 +1251,7 @@ template S, CRegularInvocable> Proj = decltype([](T&& A) -> T&& { return Forward(A); }), CEquivalenceRelation>, TInvokeResult>> Pred = - TConditional>>, + TConditional>, TInvokeResult>>, decltype([](const LHS& A, const RHS& B) { return A == B; }), void>> NODISCARD FORCEINLINE constexpr I FindAdjacent(I First, S Last, Pred Predicate = { }, Proj Projection = { }) {