fix(util/rb_tree): missing const
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
2424cf7ece
commit
208384b5b6
1 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T, typename CMP>
|
template<typename T, typename CMP>
|
||||||
rb_tree<T, CMP> insert(rb_tree<T, CMP> & t, T const & v) { rb_tree<T, CMP> r(t); r.insert(v); return r; }
|
rb_tree<T, CMP> insert(rb_tree<T, CMP> const & t, T const & v) { rb_tree<T, CMP> r(t); r.insert(v); return r; }
|
||||||
template<typename T, typename CMP>
|
template<typename T, typename CMP>
|
||||||
rb_tree<T, CMP> erase(rb_tree<T, CMP> & t, T const & v) { rb_tree<T, CMP> r(t); r.erase(v); return r; }
|
rb_tree<T, CMP> erase(rb_tree<T, CMP> const & t, T const & v) { rb_tree<T, CMP> r(t); r.erase(v); return r; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue