[ox/std] Fix broken invocation of Vector::reserveInsert
This commit is contained in:
parent
c1c41cfc99
commit
f4ef762952
2
deps/ox/src/ox/std/vector.hpp
vendored
2
deps/ox/src/ox/std/vector.hpp
vendored
@ -652,7 +652,7 @@ template<typename... Args>
|
|||||||
constexpr typename Vector<T, SmallVectorSize, Allocator>::template iterator<>
|
constexpr typename Vector<T, SmallVectorSize, Allocator>::template iterator<>
|
||||||
Vector<T, SmallVectorSize, Allocator>::emplace(std::size_t pos, Args&&... args) noexcept(useNoexcept) {
|
Vector<T, SmallVectorSize, Allocator>::emplace(std::size_t pos, Args&&... args) noexcept(useNoexcept) {
|
||||||
if (m_size == m_cap) {
|
if (m_size == m_cap) {
|
||||||
reserveInsert(m_cap ? m_cap * 2 : initialCap);
|
reserveInsert(m_cap ? m_cap * 2 : initialCap, pos);
|
||||||
if (pos < m_size) {
|
if (pos < m_size) {
|
||||||
m_items[pos].~T();
|
m_items[pos].~T();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user