Fix move constructors with unequal allocators and move/copy assignment of tree.

This commit is contained in:
Ion Gaztañaga committed 2015-02-26 00:22:23 +01:00
1 parent d0750f4493
commit c2ea5da716
8 files changed
+25 -17

No files matched your search

+2 -1
View File
@@ -718,7 +718,8 @@ class deque : protected deque_base<Allocator>
if(x.size()){
this->priv_initialize_map(x.size());
boost::container::uninitialized_copy_alloc
(this->alloc(), x.begin(), x.end(), this->members_.m_start);
( this->alloc(), boost::make_move_iterator(x.begin())
, boost::make_move_iterator(x.end()), this->members_.m_start);
}
}
}