We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda3b3d commit 0140a44Copy full SHA for 0140a44
interval_tree.hpp
@@ -709,10 +709,9 @@ namespace lib_interval_tree
709
* @param ival The interval
710
* @param exclusive Exclude borders.
711
*/
712
- template <typename IntervalType = interval_type>
713
- iterator insert_overlap(IntervalType&& ival, bool exclusive = false)
+ iterator insert_overlap(interval_type const& ival, bool exclusive = false)
714
{
715
- auto iter = overlap_find(std::forward <IntervalType&&> (ival), exclusive);
+ auto iter = overlap_find(ival, exclusive);
716
if (iter == end())
717
return insert(ival);
718
else
0 commit comments