This commit is contained in:
2
deps/nostalgia/deps/ox/src/ox/std/vector.hpp
vendored
2
deps/nostalgia/deps/ox/src/ox/std/vector.hpp
vendored
@@ -55,9 +55,9 @@ struct VectorAllocator {
|
|||||||
// try removing it later
|
// try removing it later
|
||||||
if (!std::is_constant_evaluated()) {
|
if (!std::is_constant_evaluated()) {
|
||||||
if (cap <= m_data.size() && count <= m_data.size()) {
|
if (cap <= m_data.size() && count <= m_data.size()) {
|
||||||
if (count <= Size)
|
|
||||||
for (auto i = 0u; i < count; ++i) {
|
for (auto i = 0u; i < count; ++i) {
|
||||||
auto const srcItem = std::launder(reinterpret_cast<T*>(&src->m_data[i]));
|
auto const srcItem = std::launder(reinterpret_cast<T*>(&src->m_data[i]));
|
||||||
|
if (i <= m_data.size())
|
||||||
new (&m_data[i]) T(std::move(*srcItem));
|
new (&m_data[i]) T(std::move(*srcItem));
|
||||||
}
|
}
|
||||||
if (count) {
|
if (count) {
|
||||||
|
Reference in New Issue
Block a user