diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index f38de63..80df0ce 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -1751,7 +1751,7 @@ private: BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference at(size_type n) { this->priv_throw_if_out_of_range(n); - return this->m_holder.start()[n]; + return this->m_holder.start()[difference_type(n)]; } //! Requires: size() > n.