From 615fb2429d4422a1462402a5c30c3879b57b850f Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Tue, 29 Oct 2024 21:05:24 +0800 Subject: [PATCH] fix(containers): fix the constant branch of Iteration::Distance never entered --- Redcraft.Utility/Source/Public/Containers/Iterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Redcraft.Utility/Source/Public/Containers/Iterator.h b/Redcraft.Utility/Source/Public/Containers/Iterator.h index 62f71dc..feaf250 100644 --- a/Redcraft.Utility/Source/Public/Containers/Iterator.h +++ b/Redcraft.Utility/Source/Public/Containers/Iterator.h @@ -646,7 +646,7 @@ FORCEINLINE constexpr void Advance(I& Iter, ptrdiff N) template S> FORCEINLINE constexpr ptrdiff Distance(I First, S Last) { - if constexpr (CSizedSentinelFor) + if constexpr (CSizedSentinelFor) { return Last - First; }