Skip to content

Commit

Permalink
Simplify the test with const_reference_sender
Browse files Browse the repository at this point in the history
  • Loading branch information
aurianer committed Oct 13, 2022
1 parent 89479ec commit e344f07
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libs/pika/execution/tests/unit/algorithm_start_detached.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ int main()

{
int x = 42;
std::atomic<bool> then_called{false};
ex::start_detached(
const_reference_sender<int>{x} | ex::then([&](auto& x) {
PIKA_TEST_EQ(x, 42);
then_called = true;
}));
PIKA_TEST(then_called);
ex::start_detached(const_reference_sender<int>{x});
}

{
Expand Down

0 comments on commit e344f07

Please sign in to comment.