diff --git a/include/pocketpy/common/vector.hpp b/include/pocketpy/common/vector.hpp index 12600d65..54e5ab48 100644 --- a/include/pocketpy/common/vector.hpp +++ b/include/pocketpy/common/vector.hpp @@ -334,7 +334,7 @@ struct small_vector { small_vector(small_vector&& other) noexcept { if(other.is_small()) { _begin = reinterpret_cast(_buffer); - uninitialized_relocate_n(other._buffer, other.size(), _buffer); + uninitialized_relocate_n((T*)other._buffer, other.size(), (T*)_buffer); _end = _begin + other.size(); _capacity = _begin + N; } else {