diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index 30f5a24a..6ab8005e 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -310,10 +310,10 @@ class Vector: detail::VectorAllocator { Result front() const noexcept; [[nodiscard]] - Result back() noexcept; + constexpr Result back() noexcept; [[nodiscard]] - Result back() const noexcept; + constexpr Result back() const noexcept; [[nodiscard]] constexpr std::size_t size() const noexcept; @@ -501,7 +501,7 @@ Result Vector::front() const noexcept { } template -Result Vector::back() noexcept { +constexpr Result Vector::back() noexcept { if (!m_size) { AllocAlias v; return {*reinterpret_cast(&v), OxError(1)}; @@ -510,7 +510,7 @@ Result Vector::back() noexcept { } template -Result Vector::back() const noexcept { +constexpr Result Vector::back() const noexcept { if (!m_size) { AllocAlias v; return {*reinterpret_cast(&v), OxError(1)};