trac_10098 iterator_range sign warning.

This commit is contained in:
Neil Groves
2014-06-07 17:19:35 +01:00
parent fe1a592e46
commit 344f578934

View File

@ -336,7 +336,8 @@ protected:
public:
reference operator[](difference_type at) const
{
BOOST_ASSERT(at >= 0 && at < size());
BOOST_ASSERT(at >= 0);
BOOST_ASSERT(static_cast<typename base_type::size_type>(at) < size());
return this->m_Begin[at];
}
@ -347,7 +348,8 @@ public:
//
abstract_value_type operator()(difference_type at) const
{
BOOST_ASSERT(at >= 0 && at < size());
BOOST_ASSERT(at >= 0);
BOOST_ASSERT(static_cast<typename base_type::size_type>(at) < size());
return this->m_Begin[at];
}