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:
parent
ce5c63b368
commit
94a9e81a0f
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue