diff --git a/include/chaiscript/language/chaiscript_eval.hpp b/include/chaiscript/language/chaiscript_eval.hpp index 32e6ae5e..a692572f 100644 --- a/include/chaiscript/language/chaiscript_eval.hpp +++ b/include/chaiscript/language/chaiscript_eval.hpp @@ -719,8 +719,8 @@ namespace chaiscript ); } - static bool has_this_capture(const std::vector> &children) noexcept { - return std::any_of(std::begin(children), std::end(children), + static bool has_this_capture(const std::vector> &t_children) noexcept { + return std::any_of(std::begin(t_children), std::end(t_children), [](const auto &child){ return child->children[0]->text == "this"; }