From 82dc1895d5080444720803c337a0d09ecf91ddd3 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 10 Jul 2022 16:01:15 -0500 Subject: [PATCH] [ox/std] Fix VectorAllocator copy constructor to take a const reference --- 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 9ee34066..e539846c 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -29,7 +29,7 @@ struct VectorAllocator { AllocAlias m_data[Size] = {}; public: constexpr VectorAllocator() noexcept = default; - constexpr VectorAllocator(VectorAllocator&) noexcept = default; + constexpr VectorAllocator(const VectorAllocator&) noexcept = default; constexpr VectorAllocator(VectorAllocator&&) noexcept = default; protected: constexpr void allocate(T **items, std::size_t cap) noexcept { @@ -82,7 +82,7 @@ struct VectorAllocator { std::allocator m_allocator; public: constexpr VectorAllocator() noexcept = default; - constexpr VectorAllocator(VectorAllocator&) noexcept = default; + constexpr VectorAllocator(const VectorAllocator&) noexcept = default; constexpr VectorAllocator(VectorAllocator&&) noexcept = default; protected: constexpr void allocate(T **items, std::size_t cap) noexcept {