From 87e48e5ca19f234860e9214c3afefd09431c1282 Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Wed, 18 Dec 2024 21:21:10 +0800 Subject: [PATCH] style(*): fix some comments and static_assert errors --- Redcraft.Utility/Source/Public/Iterator/CountedIterator.h | 2 +- Redcraft.Utility/Source/Public/Range/Utility.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Iterator/CountedIterator.h b/Redcraft.Utility/Source/Public/Iterator/CountedIterator.h index 827386b..ec5fed9 100644 --- a/Redcraft.Utility/Source/Public/Iterator/CountedIterator.h +++ b/Redcraft.Utility/Source/Public/Iterator/CountedIterator.h @@ -134,7 +134,7 @@ static_assert(CBidirectionalIterator>>); static_assert( CContiguousIterator>>); -//static_assert(COutputIterator>, int>); +static_assert(COutputIterator>, int>); static_assert(CSizedSentinelFor>, TCountedIterator>>); diff --git a/Redcraft.Utility/Source/Public/Range/Utility.h b/Redcraft.Utility/Source/Public/Range/Utility.h index c7b77de..46897ed 100644 --- a/Redcraft.Utility/Source/Public/Range/Utility.h +++ b/Redcraft.Utility/Source/Public/Range/Utility.h @@ -277,12 +277,12 @@ concept CSizedRange = CRange template S = ISizedSentinelFor> struct ISizedRange /* : IRange */ { - // ~Begin CRange + // ~Begin CRange. I Begin() /* const */; S End() /* const */; - // ~End CRange + // ~End CRange. /** * Get the number of elements in the range. @@ -344,12 +344,12 @@ concept CContiguousRange = CRandomAccessRange && CContiguousIterator S = ISentinelFor> struct IContiguousRange /* : IRange */ { - // ~Begin CRange + // ~Begin CRange. I Begin() /* const */; S End() /* const */; - // ~End CRange + // ~End CRange. /** * Get the pointer to the container element storage.