Merge pull request #297 from StidOfficial/fix-compilation-warnings

Fix warning build with memmove
This commit is contained in:
Alberto Demichelis
2024-11-08 13:44:14 +01:00
committed by GitHub

View File

@ -95,7 +95,7 @@ public:
{
_vals[idx].~T();
if(idx < (_size - 1)) {
memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
memmove((void*)&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
}
_size--;
}