Commit e379f4e0 authored by Dominik Charousset's avatar Dominik Charousset

Fix do_finally operator

parent 00db7852
......@@ -33,15 +33,15 @@ public:
}
template <class Next, class... Steps>
void finally(Next& next, Steps&... steps) {
void on_complete(Next& next, Steps&... steps) {
fn_();
next.finally(steps...);
next.on_complete(steps...);
}
template <class Next, class... Steps>
void finally(const error& what, Next& next, Steps&... steps) {
void on_error(const error& what, Next& next, Steps&... steps) {
fn_();
next.finally(what, steps...);
next.on_error(what, steps...);
}
private:
......
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