diff --git a/include/chaiscript/chaiscript_defines.hpp b/include/chaiscript/chaiscript_defines.hpp index 4c31b6e..0ff0ac3 100644 --- a/include/chaiscript/chaiscript_defines.hpp +++ b/include/chaiscript/chaiscript_defines.hpp @@ -137,13 +137,6 @@ namespace chaiscript { }; - template - Iter advance_copy(Iter iter, Distance distance) { - std::advance(iter, static_cast::difference_type>(distance)); - return iter; - } - - template auto parse_num(const char *t_str) -> typename std::enable_if::value, T>::type { diff --git a/include/chaiscript/dispatchkit/dispatchkit.hpp b/include/chaiscript/dispatchkit/dispatchkit.hpp index b94152e..f9159d6 100644 --- a/include/chaiscript/dispatchkit/dispatchkit.hpp +++ b/include/chaiscript/dispatchkit/dispatchkit.hpp @@ -1410,7 +1410,7 @@ namespace chaiscript static typename Container::const_iterator find_keyed_value(const Container &t_c, const Key &t_key, const size_t t_hint) { if (t_c.size() > t_hint && t_c[t_hint].first == t_key) { - return advance_copy(t_c.begin(), t_hint); + return std::next(t_c.begin(), t_hint); } else { return find_keyed_value(t_c, t_key); }