fix(*): fix missing constexpr in some if constexpr

This commit is contained in:
2024-12-17 15:49:46 +08:00
parent 00be872d5c
commit 50b1d2bb29
3 changed files with 4 additions and 4 deletions

View File

@ -471,7 +471,7 @@ public:
if constexpr (CForwardIterator<I>)
{
if (CSizedSentinelFor<S, I>) { checkf(First <= Last, TEXT("Illegal range iterator. Please check First <= Last.")); }
if constexpr (CSizedSentinelFor<S, I>) { checkf(First - Last <= 0, TEXT("Illegal range iterator. Please check First <= Last.")); }
const size_t InsertIndex = First - this->Begin();