Skip to content

Commit

Permalink
Wrong forwarding was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanPinezhaninov committed Aug 6, 2020
1 parent 725cd1a commit 1e4541b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/intervaltree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ class IntervalTree

if (node->left != m_nill
&& (boundary ? !(node->left->highest < interval.low) : interval.low < node->left->highest)) {
subtreeOverlappingIntervals(node->left, interval, boundary, std::forward<Callback>(callback));
subtreeOverlappingIntervals(node->left, interval, boundary, callback);
}

if (boundary ? !(interval.high < node->intervals.front().low) : node->intervals.front().low < interval.high) {
Expand All @@ -833,7 +833,7 @@ class IntervalTree
}

if (boundary ? !(node->intervals.front().low < interval.low) : interval.low < node->intervals.front().low) {
subtreeInnerIntervals(node->left, interval, boundary, std::forward<Callback>(callback));
subtreeInnerIntervals(node->left, interval, boundary, callback);
for (auto it = node->intervals.begin(); it != node->intervals.end(); ++it) {
if (boundary ? !(interval.high < it->high) : it->high < interval.high) {
callback(*it);
Expand Down Expand Up @@ -861,7 +861,7 @@ class IntervalTree

if (node->left != m_nill
&& (boundary ? !(node->left->highest < interval.high) : interval.high < node->left->highest)) {
subtreeOuterIntervals(node->left, interval, boundary, std::forward<Callback>(callback));
subtreeOuterIntervals(node->left, interval, boundary, callback);
}

if (boundary ? !(interval.low < node->intervals.front().low) : node->intervals.front().low < interval.low) {
Expand Down Expand Up @@ -889,7 +889,7 @@ class IntervalTree

if (node->left != m_nill
&& (boundary ? !(node->left->highest < point) : point < node->left->highest)) {
subtreeIntervalsContainPoint(node->left, point, boundary, std::forward<Callback>(callback));
subtreeIntervalsContainPoint(node->left, point, boundary, callback);
}

if (boundary ? !(point < node->intervals.front().low) : node->intervals.front().low < point) {
Expand Down

0 comments on commit 1e4541b

Please sign in to comment.