diff --git a/include/boost/geometry/extensions/index/static_vector.hpp b/include/boost/geometry/extensions/index/static_vector.hpp index 5f36514a2..9a9acf3dc 100644 --- a/include/boost/geometry/extensions/index/static_vector.hpp +++ b/include/boost/geometry/extensions/index/static_vector.hpp @@ -167,7 +167,7 @@ public: { // TODO change name of this macro BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(difference_type dist = std::distance(this->begin(), position)); - BOOST_ASSERT_MSG(0 <= dist && (sizeof(dist)<=sizeof(m_size)?((size_type)dist s1(s); + for ( size_t i = 0 ; i < h ; ++i ) + s1.insert(s1.end(), v); + BOOST_CHECK(s1.size() == 2*h); + for ( size_t i = 0 ; i < h ; ++i ) + BOOST_CHECK(s1[i] == T(i)); + for ( size_t i = 0 ; i < h ; ++i ) + BOOST_CHECK(s1[i+h] == v); + } } int test_main(int, char* [])