Skip to content

Commit

Permalink
Move callable f from correct place in let_value receiver set_value
Browse files Browse the repository at this point in the history
Moving from this results in an empty f, since this has already been moved to the local copy of the
receiver r.
  • Loading branch information
msimberg committed Nov 19, 2024
1 parent 4f6d897 commit c77df6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ namespace pika::let_value_detail {
.template emplace<std::tuple<std::decay_t<Ts>...>>(
PIKA_FORWARD(Ts, ts)...);
pika::detail::visit(
set_value_visitor{PIKA_MOVE(r.receiver), PIKA_MOVE(f), r.op_state},
set_value_visitor{PIKA_MOVE(r.receiver), PIKA_MOVE(r.f), r.op_state},
r.op_state.predecessor_ts);
},
[&](std::exception_ptr ep) {
Expand Down

0 comments on commit c77df6b

Please sign in to comment.