Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sharded: Mark invoke_on_others() helper lambda mutable
Otherwise mutable invoke-on-others lambdas fail to compile sharded<foo> f; f.invoke_on_others([x] (foo& f) mutable { ... }); generates /home/xemul/src/seastar/include/seastar/core/future.hh:2074:11: error: no type named ‘type’ in ‘struct std::invoke_result<const invoke_on_modifiers::do_run_test_case() const::<lambda(invoke_on_modifiers::do_run_test_case() const::checker&)>&, invoke_on_modifiers::do_run_test_case() const::checker&>’ 2074 | using futurator = futurize<std::invoke_result_t<Func, Args&&...>>; | ^~~~~~~~~ The invoke_on_all() has its helper lambda mutable so sharded<foo> f; f.invoke_on_all([x] (foo& x) mutable { ... }); compiles. Signed-off-by: Pavel Emelyanov <[email protected]>
- Loading branch information