Some compilation errors corrected in local index::static_vector.

[SVN r82048]
This commit is contained in:
Adam Wulkiewicz
2012-12-17 15:43:27 +00:00
parent b8e533f7be
commit 95f6cf8442

View File

@@ -744,18 +744,18 @@ private:
}
}
void check_capacity(size_type s)
void check_capacity(size_type s) const
{
BOOST_ASSERT_MSG(s <= Capacity, "size can't exceed the capacity");
//if ( Capacity < s ) throw std::bad_alloc();
}
void check_empty()
void check_empty() const
{
BOOST_ASSERT_MSG(0 < m_size, "the container is empty");
}
void check_iterator_end_neq(const_iterator position)
void check_iterator_end_neq(const_iterator position) const
{
BOOST_ASSERT_MSG(this->begin() <= position && position < this->end(), "iterator out of bounds");
@@ -771,7 +771,7 @@ private:
);*/
}
void check_iterator_end_eq(const_iterator position)
void check_iterator_end_eq(const_iterator position) const
{
BOOST_ASSERT_MSG(this->begin() <= position && position <= this->end(), "iterator out of bounds");