diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index 5b14239..24e7a1e 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -2100,8 +2100,8 @@ private: >::type * = 0 ) { - typedef typename iter_size::type it_size_type; BOOST_ASSERT(this->priv_in_range_or_end(pos)); + typedef typename iter_size::type it_size_type; const it_size_type sz = boost::container::iterator_udistance(first, last); if (BOOST_UNLIKELY(sz > size_type(-1))){ boost::container::throw_length_error("vector::insert, FwdIt's max length reached");