Commit 3a03ce46 authored by Tiago Peixoto's avatar Tiago Peixoto

nested_for_each(): fix version without value arguments

The version of nested_for_each() without boost::any arguments must be
called for every type, not only the first. This means the wrapped action
must return false, otherwise the compiler will omit the remaining calls.
parent df5da3c4
......@@ -199,7 +199,7 @@ void nested_for_each(Action a)
typedef typename to_tuple<TR1>::type tr_tuple;
// wrap action into a bool-returning function
auto ab = [=](auto*... args) -> bool { a(args...); return true; };
auto ab = [=](auto*... args) -> bool { a(args...); return false; };
typedef inner_loop<decltype(ab), std::tuple<>, TRS...> inner_loop_t;
for_each_variadic<inner_loop_t, tr_tuple>()(inner_loop_t(ab));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment