make body fix
parent
3506facc61
commit
e0986692ef
|
@ -82,9 +82,13 @@ struct make_rule {
|
||||||
}
|
}
|
||||||
|
|
||||||
make_rule &body(std::function<void()> act_f) noexcept {
|
make_rule &body(std::function<void()> act_f) noexcept {
|
||||||
p_body = [act_f = std::move(act_f)](auto, auto) {
|
if (act_f) {
|
||||||
act_f();
|
p_body = [act_f = std::move(act_f)](auto, auto) {
|
||||||
};
|
act_f();
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
p_body = body_func{};
|
||||||
|
}
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue