@@ -806,7 +806,7 @@ class IntervalTree
806
806
807
807
if (node->left != m_nill
808
808
&& (boundary ? !(node->left ->highest < interval.low ) : interval.low < node->left ->highest )) {
809
- subtreeOverlappingIntervals (node->left , interval, boundary, std::forward<Callback>( callback) );
809
+ subtreeOverlappingIntervals (node->left , interval, boundary, callback);
810
810
}
811
811
812
812
if (boundary ? !(interval.high < node->intervals .front ().low ) : node->intervals .front ().low < interval.high ) {
@@ -833,7 +833,7 @@ class IntervalTree
833
833
}
834
834
835
835
if (boundary ? !(node->intervals .front ().low < interval.low ) : interval.low < node->intervals .front ().low ) {
836
- subtreeInnerIntervals (node->left , interval, boundary, std::forward<Callback>( callback) );
836
+ subtreeInnerIntervals (node->left , interval, boundary, callback);
837
837
for (auto it = node->intervals .begin (); it != node->intervals .end (); ++it) {
838
838
if (boundary ? !(interval.high < it->high ) : it->high < interval.high ) {
839
839
callback (*it);
@@ -861,7 +861,7 @@ class IntervalTree
861
861
862
862
if (node->left != m_nill
863
863
&& (boundary ? !(node->left ->highest < interval.high ) : interval.high < node->left ->highest )) {
864
- subtreeOuterIntervals (node->left , interval, boundary, std::forward<Callback>( callback) );
864
+ subtreeOuterIntervals (node->left , interval, boundary, callback);
865
865
}
866
866
867
867
if (boundary ? !(interval.low < node->intervals .front ().low ) : node->intervals .front ().low < interval.low ) {
@@ -889,7 +889,7 @@ class IntervalTree
889
889
890
890
if (node->left != m_nill
891
891
&& (boundary ? !(node->left ->highest < point) : point < node->left ->highest )) {
892
- subtreeIntervalsContainPoint (node->left , point, boundary, std::forward<Callback>( callback) );
892
+ subtreeIntervalsContainPoint (node->left , point, boundary, callback);
893
893
}
894
894
895
895
if (boundary ? !(point < node->intervals .front ().low ) : node->intervals .front ().low < point) {
0 commit comments