[ox/std] Fix broken invocation of Vector::reserveInsert

This commit is contained in:
Gary Talent 2023-08-09 00:31:56 -05:00
parent c1c41cfc99
commit f4ef762952

View File

@ -652,7 +652,7 @@ template<typename... Args>
constexpr typename Vector<T, SmallVectorSize, Allocator>::template iterator<>
Vector<T, SmallVectorSize, Allocator>::emplace(std::size_t pos, Args&&... args) noexcept(useNoexcept) {
if (m_size == m_cap) {
reserveInsert(m_cap ? m_cap * 2 : initialCap);
reserveInsert(m_cap ? m_cap * 2 : initialCap, pos);
if (pos < m_size) {
m_items[pos].~T();
}