diff --git a/include/gp/vector.hpp b/include/gp/vector.hpp index 2ea73f2..b96dfa5 100644 --- a/include/gp/vector.hpp +++ b/include/gp/vector.hpp @@ -131,7 +131,7 @@ namespace gp{ if(T* new_ary = (T*)alloc.get().allocate(new_data_size); new_ary) { auto new_it = new_ary; for(auto& elem : *this) { - new(++new_it) T(gp::move(elem)); + new(new_it++) T(gp::move(elem)); } if(ary != nullptr) gp_config::assertion(alloc.get().deallocate(ary), "failed to deallocate old range"); @@ -258,4 +258,4 @@ namespace gp{ return gp::buffer{(T*)ary, (T*)ary+sz}; } }; -} \ No newline at end of file +}