mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-20 13:48:27 +08:00
small vector fix
This commit is contained in:
parent
63466dc2ea
commit
a1267c738c
@ -107,7 +107,7 @@ namespace Blah
|
|||||||
clear();
|
clear();
|
||||||
reserve(src.m_capacity);
|
reserve(src.m_capacity);
|
||||||
for (int i = 0; i < src.m_count; i++)
|
for (int i = 0; i < src.m_count; i++)
|
||||||
m_buffer[i] = src.m_buffer[i];
|
new (m_buffer + i) T(src.m_buffer[i]);
|
||||||
m_count = src.m_count;
|
m_count = src.m_count;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user