[ox/std] Make Span access check message consistent with other messages
This commit is contained in:
parent
8f25ef96ff
commit
ab3f9e1627
4
deps/ox/src/ox/std/span.hpp
vendored
4
deps/ox/src/ox/std/span.hpp
vendored
@ -231,12 +231,12 @@ class Span {
|
||||
}
|
||||
|
||||
constexpr T &operator[](std::size_t i) noexcept {
|
||||
ox::primitiveAssert(__FILE__, __LINE__, i < size(), "Span overflow");
|
||||
ox::primitiveAssert(__FILE__, __LINE__, i < size(), "Span access overflow");
|
||||
return m_items[i];
|
||||
}
|
||||
|
||||
constexpr const T &operator[](std::size_t i) const noexcept {
|
||||
ox::primitiveAssert(__FILE__, __LINE__, i < size(), "Span overflow");
|
||||
ox::primitiveAssert(__FILE__, __LINE__, i < size(), "Span access overflow");
|
||||
return m_items[i];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user