diff --git a/include/boost/container/detail/flat_tree.hpp b/include/boost/container/detail/flat_tree.hpp index 2988ebb..851e15f 100644 --- a/include/boost/container/detail/flat_tree.hpp +++ b/include/boost/container/detail/flat_tree.hpp @@ -549,7 +549,9 @@ class flat_tree pos = const_cast(*this).priv_lower_bound(pos, ce, KeyOfValue()(val)); //Check if already present if (pos != ce && !val_cmp(val, *pos)){ - skips[unique_burst-1] += static_cast(unique_burst > 0); + if(unique_burst > 0){ + ++skips[unique_burst-1]; + } continue; }