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;