From f3b4df8c827991cf4cd3a6a1aed8dc75673b2782 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Thu, 11 Jun 2015 23:14:00 +0200 Subject: [PATCH] [index] Rename member and tparam in expandable_box for better readability. --- .../geometry/index/detail/rtree/pack_create.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/boost/geometry/index/detail/rtree/pack_create.hpp b/include/boost/geometry/index/detail/rtree/pack_create.hpp index b7104e0b8..bf2c59baa 100644 --- a/include/boost/geometry/index/detail/rtree/pack_create.hpp +++ b/include/boost/geometry/index/detail/rtree/pack_create.hpp @@ -189,21 +189,21 @@ public: } private: - template + template class expandable_box { public: expandable_box() - : m_is_first(true) + : m_initialized(false) {} template void expand(Indexable const& indexable) { - if ( m_is_first ) + if ( !m_initialized ) { detail::bounds(indexable, m_box); - m_is_first = false; + m_initialized = true; } else { @@ -211,14 +211,15 @@ private: } } - Box2 const& get() const + BoxType const& get() const { + BOOST_GEOMETRY_INDEX_ASSERT(m_initialized, "uninitialized envelope accessed"); return m_box; } private: - bool m_is_first; - Box2 m_box; + bool m_initialized; + BoxType m_box; }; struct subtree_elements_counts