Merge branch 'master' of https://github.com/garyfurnish/container into garyfurnish-master

This commit is contained in:
Ion Gaztañaga
2017-06-06 13:14:18 +02:00

View File

@@ -963,7 +963,8 @@ template
inline typename container_detail::disable_if_trivially_destructible<I, void>::type inline typename container_detail::disable_if_trivially_destructible<I, void>::type
destroy_alloc_n(Allocator &a, I f, U n) destroy_alloc_n(Allocator &a, I f, U n)
{ {
while(n--){ while(n){
--n;
allocator_traits<Allocator>::destroy(a, boost::movelib::iterator_to_raw_pointer(f)); allocator_traits<Allocator>::destroy(a, boost::movelib::iterator_to_raw_pointer(f));
++f; ++f;
} }