From 6adf48cb777262822c26f2f291a1698697c1928b Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Tue, 12 Apr 2022 23:00:31 +0200 Subject: [PATCH] Update interval_tree.hpp --- include/interval_tree.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/interval_tree.hpp b/include/interval_tree.hpp index cf63382..604186d 100644 --- a/include/interval_tree.hpp +++ b/include/interval_tree.hpp @@ -1,6 +1,6 @@ /* -From my own for of : https://github.com/NicoG60/interval-tree -(https://github.com/Stepland/interval-tree) +From my own fork of https://github.com/NicoG60/interval-tree +( https://github.com/Stepland/interval-tree ) */ #ifndef INTERVAL_TREE_H @@ -430,7 +430,7 @@ public: template::value, int>::type = 0> iterator insert(P&& value) { - return emplace(std::forward(value)); + return emplace(std::forward

(value)); } iterator insert(const_iterator hint, const value_type& value) @@ -530,7 +530,7 @@ public: if(!root) return 0; - node* n = find(root, key); + node* n = _find(key); if(!n) return 0; @@ -1211,7 +1211,7 @@ bool operator==(const interval_tree& lhs, auto rit = rhs.cbegin(); auto er = rhs.cend(); - while(lit != el && rit != er) + for(;lit != el && rit != er; ++lit, ++rit) { if(*lit != *rit) return false;