id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11628,"small_vector iterates over elements in destructor",benjamin.redelings@…,Ion Gaztañaga,"In the destruction of a small_vector, gdb reveals that the integers are individually destroyed, which makes destruction linear in the size of the object. The code that does this linear-time destruction is the code below from container/detail/copy_move_algo.hpp: template // U models unsigned integral constant inline typename container_detail::disable_if_trivially_destructible::type destroy_alloc_n(Allocator &a, I f, U n) { while(n--){ allocator_traits::destroy(a,container_detail::iterator_to_raw_pointer(f)); ++f; } Since int is a POD type, it seems that this loop shouldn't be executed. It appears that the type variable I takes on the value ""int*"".",Bugs,closed,To Be Determined,container,Boost 1.59.0,Problem,fixed,,