[ox/std] Fix VectorAllocator copy constructor to take a const reference
This commit is contained in:
parent
6908199428
commit
82dc1895d5
4
deps/ox/src/ox/std/vector.hpp
vendored
4
deps/ox/src/ox/std/vector.hpp
vendored
@ -29,7 +29,7 @@ struct VectorAllocator {
|
|||||||
AllocAlias<T> m_data[Size] = {};
|
AllocAlias<T> m_data[Size] = {};
|
||||||
public:
|
public:
|
||||||
constexpr VectorAllocator() noexcept = default;
|
constexpr VectorAllocator() noexcept = default;
|
||||||
constexpr VectorAllocator(VectorAllocator&) noexcept = default;
|
constexpr VectorAllocator(const VectorAllocator&) noexcept = default;
|
||||||
constexpr VectorAllocator(VectorAllocator&&) noexcept = default;
|
constexpr VectorAllocator(VectorAllocator&&) noexcept = default;
|
||||||
protected:
|
protected:
|
||||||
constexpr void allocate(T **items, std::size_t cap) noexcept {
|
constexpr void allocate(T **items, std::size_t cap) noexcept {
|
||||||
@ -82,7 +82,7 @@ struct VectorAllocator<T, 0> {
|
|||||||
std::allocator<T> m_allocator;
|
std::allocator<T> m_allocator;
|
||||||
public:
|
public:
|
||||||
constexpr VectorAllocator() noexcept = default;
|
constexpr VectorAllocator() noexcept = default;
|
||||||
constexpr VectorAllocator(VectorAllocator&) noexcept = default;
|
constexpr VectorAllocator(const VectorAllocator&) noexcept = default;
|
||||||
constexpr VectorAllocator(VectorAllocator&&) noexcept = default;
|
constexpr VectorAllocator(VectorAllocator&&) noexcept = default;
|
||||||
protected:
|
protected:
|
||||||
constexpr void allocate(T **items, std::size_t cap) noexcept {
|
constexpr void allocate(T **items, std::size_t cap) noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user