backport JSON for G++4.6

This commit is contained in:
Jason Turner
2015-09-21 12:27:33 -06:00
parent e62a38b39f
commit 681f18ee62
3 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ namespace chaiscript
{
const bool has_arity_match = std::any_of(funcs.begin(), funcs.end(),
[](const Const_Proxy_Function &f) {
return f->get_arity() == -1 || f->get_arity() == chaiscript::dispatch::detail::Arity<FunctionType>::arity;
return f->get_arity() == -1 || size_t(f->get_arity()) == chaiscript::dispatch::detail::Arity<FunctionType>::arity;
});
if (!has_arity_match) {