Skip to content

Commit c3c00a8

Browse files
committed
do not use parens to init an aggregate
1 parent 3d29f1b commit c3c00a8

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

test/stdexec/algos/adaptors/test_let_error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ namespace {
354354
TEST_CASE("let_error can be customized", "[adaptors][let_error]") {
355355
// The customization will return a different value
356356
auto snd = ex::just(std::string{"hello"})
357-
| exec::write_attrs(ex::prop(ex::get_domain, let_error_test_domain{}))
357+
| exec::write_attrs(ex::prop{ex::get_domain, let_error_test_domain{}})
358358
| ex::let_error([](std::exception_ptr) { return ex::just(std::string{"err"}); });
359359
wait_for_value(std::move(snd), std::string{"what error?"});
360360
}

test/stdexec/algos/adaptors/test_let_stopped.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ namespace {
224224
TEST_CASE("let_stopped can be customized", "[adaptors][let_stopped]") {
225225
// The customization will return a different stopped
226226
auto snd = ex::just(std::string{"hello"})
227-
| exec::write_attrs(ex::prop(ex::get_domain, let_stopped_test_domain{}))
227+
| exec::write_attrs(ex::prop{ex::get_domain, let_stopped_test_domain{}})
228228
| ex::let_stopped([] { return ex::just(std::string{"stopped"}); });
229229
wait_for_value(std::move(snd), std::string{"Don't stop me now"});
230230
}

test/stdexec/algos/adaptors/test_let_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ namespace {
318318
TEST_CASE("let_value can be customized", "[adaptors][let_value]") {
319319
// The customization will return a different value
320320
auto snd = ex::just(std::string{"hello"})
321-
| exec::write_attrs(ex::prop(ex::get_domain, let_value_test_domain{}))
321+
| exec::write_attrs(ex::prop{ex::get_domain, let_value_test_domain{}})
322322
| ex::let_value([](std::string& x) { return ex::just(x + ", world"); });
323323
wait_for_value(std::move(snd), std::string{"hallo"});
324324
}

test/stdexec/algos/adaptors/test_when_all.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ namespace {
321321

322322
TEST_CASE("when_all propagates domain from children", "[adaptors][when_all]") {
323323
auto snd = ex::when_all( //
324-
ex::just(13) | exec::write_attrs(ex::prop(ex::get_domain, test_domain1{})), //
325-
ex::just(3.14) | exec::write_attrs(ex::prop(ex::get_domain, test_domain2{})) //
324+
ex::just(13) | exec::write_attrs(ex::prop{ex::get_domain, test_domain1{}}), //
325+
ex::just(3.14) | exec::write_attrs(ex::prop{ex::get_domain, test_domain2{}}) //
326326
);
327327
auto env = ex::get_env(snd);
328328
auto domain = ex::get_domain(env);

test/stdexec/algos/consumers/test_start_detached.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace {
111111

112112
[[nodiscard]]
113113
auto get_env() const noexcept {
114-
return ex::prop(ex::get_domain, domain{});
114+
return ex::prop{ex::get_domain, domain{}};
115115
}
116116

117117
template <class Receiver>
@@ -129,7 +129,7 @@ namespace {
129129

130130
[[nodiscard]]
131131
auto get_env() const noexcept {
132-
return ex::prop(ex::get_completion_scheduler<ex::set_value_t>, custom_scheduler{called});
132+
return ex::prop{ex::get_completion_scheduler<ex::set_value_t>, custom_scheduler{called}};
133133
}
134134

135135
struct noop {

test/stdexec/algos/consumers/test_sync_wait.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ namespace {
233233
TEST_CASE("sync_wait can be customized without scheduler", "[consumers][sync_wait]") {
234234
// The customization will return a different value
235235
auto snd = ex::just(std::string{"hello"})
236-
| exec::write_attrs(ex::prop(ex::get_domain, sync_wait_test_domain{}));
236+
| exec::write_attrs(ex::prop{ex::get_domain, sync_wait_test_domain{}});
237237
auto res = ex::sync_wait(std::move(snd));
238238
STATIC_REQUIRE(std::same_as<decltype(res), sync_wait_test_domain::single_result_t>);
239239
CHECK(res.has_value());
@@ -260,7 +260,7 @@ namespace {
260260
// The customization will return a different value
261261
auto snd = fallible_just(std::string{"hello_multi"}) //
262262
| ex::let_error(always(ex::just(42))) //
263-
| exec::write_attrs(ex::prop(ex::get_domain, sync_wait_test_domain{}));
263+
| exec::write_attrs(ex::prop{ex::get_domain, sync_wait_test_domain{}});
264264
auto res = ex::sync_wait_with_variant(std::move(snd));
265265
STATIC_REQUIRE(std::same_as<decltype(res), sync_wait_test_domain::multi_result_t>);
266266
CHECK(res.has_value());

test/stdexec/cpos/cpo_helpers.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace {
5959
ex::set_stopped_t()>;
6060

6161
auto get_env() const noexcept {
62-
return ex::prop(ex::get_domain, cpo_sender_domain{});
62+
return ex::prop{ex::get_domain, cpo_sender_domain{}};
6363
}
6464
};
6565

0 commit comments

Comments
 (0)