From c3062e80f1ab851dab6219c5121a71583c17ab1d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 10 Apr 2018 20:05:30 -0700 Subject: [PATCH] ircd::ctx: Fix bitrot in when_all() template. --- include/ircd/ctx/when.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ircd/ctx/when.h b/include/ircd/ctx/when.h index e78d93008..6e3891328 100644 --- a/include/ircd/ctx/when.h +++ b/include/ircd/ctx/when.h @@ -42,9 +42,9 @@ ircd::ctx::when_all(it first, promise p; const auto set_then { - [&p](auto &f) + [&p](it &f) { - f.st.then = [p] + f->state().then = [p] (shared_state_base &) mutable { then(p); @@ -55,7 +55,7 @@ ircd::ctx::when_all(it first, future ret(p); for(; first != last; ++first) if(is(first->state(), future_state::PENDING)) - set_then(*first); + set_then(first); if(refcount(p.state()) <= 1) p.set_value();