diff --git a/deps/ox/src/ox/std/string.hpp b/deps/ox/src/ox/std/string.hpp index 25293bcb..c5a17241 100644 --- a/deps/ox/src/ox/std/string.hpp +++ b/deps/ox/src/ox/std/string.hpp @@ -171,7 +171,7 @@ class BasicString { constexpr bool operator>=(BasicString const&other) const noexcept; - constexpr char operator[](std::size_t i) const noexcept; + constexpr char const&operator[](std::size_t i) const noexcept; constexpr char &operator[](std::size_t i) noexcept; @@ -490,7 +490,7 @@ constexpr bool BasicString::operator>=(BasicString const&othe } template -constexpr char BasicString::operator[](std::size_t i) const noexcept { +constexpr char const&BasicString::operator[](std::size_t i) const noexcept { return m_buff[i]; }