From 94a9e81a0fad5046a89a89e40f54a1f71622f516 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Sat, 11 Jan 2020 09:16:39 -0500 Subject: [PATCH] Fixes invalid initialization for Rect in rtree iterator. The rtree has the rect array sizes templated by NUMDIM, initializing with 3 default values violates the templating. --- thirdparty/rtree/geometry/rtree.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); }