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.
This commit is contained in:
Mark Roszko 2020-01-11 09:16:39 -05:00 committed by Seth Hillbrand
parent ce5c63b368
commit 94a9e81a0f
1 changed files with 5 additions and 1 deletions

View File

@ -421,7 +421,11 @@ public:
iterator begin() 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 ); return begin( full_rect );
} }