Fix function_member call from last commit

This commit is contained in:
Jason Turner
2016-03-11 15:28:33 -07:00
parent a363ef5e0e
commit 6f01568a9a

View File

@@ -911,13 +911,12 @@ namespace chaiscript
return false;
}
for (const auto &fun : t_funs) {
if (fun->is_attribute_function()
&& fun->compare_first_type(t_params[0], t_conversions)) {
}
}
return std::any_of(std::cbegin(t_funs), std::cend(t_funs),
[&](const auto &fun) {
return fun->is_attribute_function() && fun->compare_first_type(t_params[0], t_conversions);
}
);
return false;
}
#ifdef CHAISCRIPT_MSVC