diff --git a/include/boost/geometry/index/detail/rtree/visitors/insert.hpp b/include/boost/geometry/index/detail/rtree/visitors/insert.hpp index f6863a3516..d5781deac4 100644 --- a/include/boost/geometry/index/detail/rtree/visitors/insert.hpp +++ b/include/boost/geometry/index/detail/rtree/visitors/insert.hpp @@ -328,11 +328,11 @@ class insert // Enlarge it in case if it's not bounding geometry type. // It's because Points and Segments are compared WRT machine epsilon // This ensures that leafs bounds correspond to the stored elements - if BOOST_GEOMETRY_CONSTEXPR (std::is_same::value + if (BOOST_GEOMETRY_CONSTEXPR ((std::is_same::value && ! index::detail::is_bounding_geometry < typename indexable_type::type - >::value) + >::value))) { geometry::detail::expand_by_epsilon(m_element_bounds); } @@ -424,11 +424,11 @@ class insert // Enlarge bounds of a leaf node. // It's because Points and Segments are compared WRT machine epsilon // This ensures that leafs' bounds correspond to the stored elements. - if BOOST_GEOMETRY_CONSTEXPR (std::is_same::value + if (BOOST_GEOMETRY_CONSTEXPR ((std::is_same::value && ! index::detail::is_bounding_geometry < typename indexable_type::type - >::value) + >::value))) { geometry::detail::expand_by_epsilon(n_box); geometry::detail::expand_by_epsilon(additional_nodes[0].first);