diff --git a/thirdparty/rtree/geometry/rtree.h b/thirdparty/rtree/geometry/rtree.h index 9726a7529b..dd8d1344be 100644 --- a/thirdparty/rtree/geometry/rtree.h +++ b/thirdparty/rtree/geometry/rtree.h @@ -421,7 +421,11 @@ public: iterator begin() { - Rect full_rect( { { INT_MIN, INT_MIN, INT_MIN }, { INT_MAX, INT_MAX, INT_MAX } } ); + Rect full_rect; + + std::fill_n( full_rect.m_min, NUMDIMS, INT_MIN ); + std::fill_n( full_rect.m_max, NUMDIMS, INT_MAX ); + return begin( full_rect ); }