From 95f6cf84422836f935644547dcacbafba93094bf Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 17 Dec 2012 15:43:27 +0000 Subject: [PATCH] Some compilation errors corrected in local index::static_vector. [SVN r82048] --- include/boost/geometry/extensions/index/static_vector.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/extensions/index/static_vector.hpp b/include/boost/geometry/extensions/index/static_vector.hpp index 71994f5d4..bba47ae1b 100644 --- a/include/boost/geometry/extensions/index/static_vector.hpp +++ b/include/boost/geometry/extensions/index/static_vector.hpp @@ -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");