Replace memcpy with std::copy in copyAndReturn

This commit is contained in:
Filip Klembara
2021-06-03 09:30:17 +02:00
parent 79242e27ed
commit 983b5759f3

View File

@ -275,7 +275,7 @@ int copyAndReturn(std::vector<T> b, T *buffer, int size) {
if (size < int(b.size()))
return RTC_ERR_TOO_SMALL;
memcpy(buffer, b.data(), b.size() * sizeof(*buffer));
std::copy(b.begin(), b.end(), buffer);
return int(b.size());
}