bug #1468 (1/2) : add missing std:: to memcpy

(grafted from 8579195169
)
This commit is contained in:
Gael Guennebaud
2017-09-22 09:23:24 +02:00
parent 6fc0f2be70
commit 32a6db0f8c
3 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ class AmbiVector
Index allocSize = m_allocatedElements * sizeof(ListEl);
allocSize = (allocSize + sizeof(Scalar) - 1)/sizeof(Scalar);
Scalar* newBuffer = new Scalar[allocSize];
memcpy(newBuffer, m_buffer, copyElements * sizeof(ListEl));
std::memcpy(newBuffer, m_buffer, copyElements * sizeof(ListEl));
delete[] m_buffer;
m_buffer = newBuffer;
}