diff --git a/src/vec_vector.h b/src/vec_vector.h index 0a13c10f..a0ddc0e5 100644 --- a/src/vec_vector.h +++ b/src/vec_vector.h @@ -167,7 +167,7 @@ Vector::Vector(Vector const& other) { if (new_mem) { this->mem = this->allocator.allocate(other.mem_len); - std::copy_n(this->mem, other.mem_len, other.mem); + std::copy_n(other.mem, other.mem_len, this->mem); } else { this->mem = other.mem; }