diff --git a/src/ox/std/vector.hpp b/src/ox/std/vector.hpp index 2d8fee013..5787db694 100644 --- a/src/ox/std/vector.hpp +++ b/src/ox/std/vector.hpp @@ -85,6 +85,8 @@ struct VectorAllocator { constexpr void deallocate(T *items, std::size_t cap) noexcept { // small vector optimization cannot be done it constexpr, but it doesn't really matter in constexpr if (std::is_constant_evaluated()) { + Allocator{}.deallocate(items, cap); + } else { if (items && static_cast(items) != static_cast(m_data.data())) { Allocator{}.deallocate(items, cap); }