diff --git a/include/platanus/internal/btree.hpp b/include/platanus/internal/btree.hpp index 83bbaff..3f59bec 100644 --- a/include/platanus/internal/btree.hpp +++ b/include/platanus/internal/btree.hpp @@ -119,7 +119,7 @@ class btree { explicit btree(self_type&& x, const allocator_type& alloc) : btree(std::move(x.comp_), alloc) { for (auto&& v : x) { - insert_multi(end(), std::move(x)); + insert_multi(end(), std::move(v)); } }