diff --git a/include/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp b/include/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp index 905cd51d6..18e4bccba 100644 --- a/include/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp +++ b/include/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp @@ -81,8 +81,9 @@ private: // create container of children sorted by content enlargement needed to include the new value typedef boost::tuple child_contents; - typename rtree::container_from_elements_type::type - children_contents(children_count); + + typename rtree::container_from_elements_type::type children_contents; + children_contents.resize(children_count); for ( size_t i = 0 ; i < children_count ; ++i ) {