From 69b3245ba3c312335c9ca1fe29df79ba78725053 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 23 Feb 2022 23:36:28 -0600 Subject: [PATCH] [ox/std] Make ~Vector constexpr --- deps/ox/src/ox/std/vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index a9317889..b8d35326 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -233,7 +233,7 @@ class Vector: detail::VectorAllocator { constexpr Vector(Vector &&other) noexcept; - ~Vector(); + constexpr ~Vector(); constexpr iterator<> begin() noexcept { return iterator<>(m_items, 0, m_size); @@ -421,7 +421,7 @@ constexpr Vector::Vector(Vector &&other) noexcept { } template -Vector::~Vector() { +constexpr Vector::~Vector() { clear(); this->deallocate(m_items, m_cap); m_items = nullptr;