Skip to content

Commit 0140a44

Browse files
committed
Reverted faulty optimization at one point.
1 parent dda3b3d commit 0140a44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

interval_tree.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,9 @@ namespace lib_interval_tree
709709
* @param ival The interval
710710
* @param exclusive Exclude borders.
711711
*/
712-
template <typename IntervalType = interval_type>
713-
iterator insert_overlap(IntervalType&& ival, bool exclusive = false)
712+
iterator insert_overlap(interval_type const& ival, bool exclusive = false)
714713
{
715-
auto iter = overlap_find(std::forward <IntervalType&&> (ival), exclusive);
714+
auto iter = overlap_find(ival, exclusive);
716715
if (iter == end())
717716
return insert(ival);
718717
else

0 commit comments

Comments
 (0)