More C++11/C++14 updates

This commit is contained in:
Jason Turner
2016-03-11 18:17:04 -07:00
parent 6f01568a9a
commit 16c4a11990
4 changed files with 15 additions and 75 deletions

View File

@@ -312,7 +312,7 @@ namespace chaiscript
bool call_match(const std::vector<Boxed_Value> &vals, const Type_Conversions_State &t_conversions) const override
{
return std::any_of(m_funcs.cbegin(), m_funcs.cend(),
return std::any_of(std::begin(m_funcs), std::end(m_funcs),
[&vals, &t_conversions](const Proxy_Function &f){ return f->call_match(vals, t_conversions); });
}
@@ -911,7 +911,7 @@ namespace chaiscript
return false;
}
return std::any_of(std::cbegin(t_funs), std::cend(t_funs),
return std::any_of(std::begin(t_funs), std::end(t_funs),
[&](const auto &fun) {
return fun->is_attribute_function() && fun->compare_first_type(t_params[0], t_conversions);
}