Fix parameter types in copy_move_algo.hpp: iterator_traits::difference_type -> allocator_traits::size_type

This commit is contained in:
Tobias Germer
2016-10-19 14:13:46 +02:00
parent 5ce1ad2611
commit 3830745c9f
2 changed files with 42 additions and 27 deletions

View File

@@ -3120,7 +3120,7 @@ class vector
}
else{ //If trivial destructor, we can uninitialized copy + copy in a single uninitialized copy
::boost::container::uninitialized_move_alloc_n
(this->m_holder.alloc(), pos, old_finish - pos, new_start + before_plus_new);
(this->m_holder.alloc(), pos, static_cast<size_type>(old_finish - pos), new_start + before_plus_new);
this->m_holder.m_size = new_size;
old_values_destroyer.release();
}