From dca4eaa6eb7d3c78a98c3bb7ca71c70bf014a1f3 Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Sun, 15 Dec 2024 16:20:04 +0800 Subject: [PATCH] fix(range): fix related tool identifiers for common range --- Redcraft.Utility/Source/Public/Range/Utility.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Range/Utility.h b/Redcraft.Utility/Source/Public/Range/Utility.h index 0003368..b272130 100644 --- a/Redcraft.Utility/Source/Public/Range/Utility.h +++ b/Redcraft.Utility/Source/Public/Range/Utility.h @@ -47,7 +47,6 @@ NAMESPACE_END(Range) template using TRangeIterator = decltype(Range::Begin(DeclVal())); - NAMESPACE_BEGIN(Range) /** @return The iterator to the end of a container. */ @@ -355,16 +354,16 @@ struct IContiguousRange /* : IRange */ // Use IContiguousRange<...> represents a contiguous range type. static_assert(CContiguousRange>>); -/** A concept specifies a type is a range and its iterators and sentinel types are the same. */ +/** A concept specifies a type is a range and its iterator and sentinel types are the same. */ template concept CCommonRange = CRange && CSameAs, TRangeSentinel>; /** This is an example of a common range type, indicate the traits that define a common range type. */ template -using TCommonRange = IRange; +using ICommonRange = IRange; // Use TCommonRange<...> represents a common range type. -static_assert(CCommonRange>>); +static_assert(CCommonRange>>); NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft)