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

(synced from 82dc1895d5)
This commit is contained in:
2022-07-10 16:01:15 -05:00
parent 8cc674a71e
commit 445678454f
+2 -2
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 {