mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-08 01:36:54 +08:00
Make map::count() properly const. #90
This commit is contained in:
parent
189ae82cb7
commit
7cebc8d748
@ -150,7 +150,7 @@ namespace chaiscript
|
||||
namespace detail {
|
||||
|
||||
template<typename T>
|
||||
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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user