forked from boostorg/range
Merge branch 'develop' to incorporate trac 10098
This commit is contained in:
@ -336,7 +336,8 @@ protected:
|
|||||||
public:
|
public:
|
||||||
reference operator[](difference_type at) const
|
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];
|
return this->m_Begin[at];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,7 +348,8 @@ public:
|
|||||||
//
|
//
|
||||||
abstract_value_type operator()(difference_type at) const
|
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];
|
return this->m_Begin[at];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user