[*] Fix: AuParse parse ints should fail on an empty/null/0-length range instead of parsing nothing and returning true

This commit is contained in:
Reece Wilson 2024-08-01 11:41:07 +01:00
parent 3c846a2ea7
commit 2274b7f624

View File

@ -204,6 +204,11 @@ namespace Aurora::Parse
auto itr = begin;
if (begin == end)
{
return false;
}
if constexpr (AuIsSame_v<T, AuSInt>)
{
if (itr != end)
@ -271,6 +276,11 @@ namespace Aurora::Parse
auto itr = begin;
if (begin == end)
{
return false;
}
if constexpr (AuIsSame_v<T, AuSInt>)
{
if (itr != end)