From 7cebc8d748444691e429828c42f02f6b1f727adb Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 27 Nov 2013 09:36:50 -0700 Subject: [PATCH] Make map::count() properly const. #90 --- include/chaiscript/dispatchkit/bootstrap_stl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/bootstrap_stl.hpp b/include/chaiscript/dispatchkit/bootstrap_stl.hpp index 0c090cf..42c0ef0 100644 --- a/include/chaiscript/dispatchkit/bootstrap_stl.hpp +++ b/include/chaiscript/dispatchkit/bootstrap_stl.hpp @@ -150,7 +150,7 @@ namespace chaiscript namespace detail { template - size_t count(T &t_target, const typename T::key_type &t_key) + size_t count(const T &t_target, const typename T::key_type &t_key) { return t_target.count(t_key); }