Skip to content

Commit 46124ff

Browse files
committed
Made recursive the default for insert_overlap.
1 parent 7af4e38 commit 46124ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/interval-tree/interval_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ namespace lib_interval_tree
11281128
* Be careful to not produce overlapping merge sets when doing recursive insertion, or it will recurse
11291129
* endlessly.
11301130
*/
1131-
iterator insert_overlap(interval_type const& ival, bool exclusive = false, bool recursive = false)
1131+
iterator insert_overlap(interval_type const& ival, bool exclusive = false, bool recursive = true)
11321132
{
11331133
auto iter = overlap_find(ival, exclusive);
11341134
if (iter == end())

0 commit comments

Comments
 (0)