Minor improvements

This commit is contained in:
Lynix
2024-01-29 18:34:46 +01:00
parent 0191256493
commit 2b88f50c21
19 changed files with 34 additions and 41 deletions

View File

@@ -640,7 +640,7 @@ namespace Nz
template<typename T>
constexpr T& Box<T>::operator[](std::size_t i)
{
NazaraAssert(i < 6, "Index out of range");
NazaraAssertFmt(i < 6, "index out of range ({0} >= 6)", i);
return *(&x+i);
}
@@ -656,7 +656,7 @@ namespace Nz
template<typename T>
constexpr const T& Box<T>::operator[](std::size_t i) const
{
NazaraAssert(i < 6, "Index out of range");
NazaraAssertFmt(i < 6, "index out of range ({0} >= 6)", i);
return *(&x+i);
}