[ox/std] Fix VectorAllocator copy constructor to take a const reference

This commit is contained in:
Gary Talent 2022-07-10 16:01:15 -05:00
parent 6908199428
commit 82dc1895d5

View File

@ -29,7 +29,7 @@ struct VectorAllocator {
AllocAlias<T> 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<T, 0> {
std::allocator<T> 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 {