Skip to content

Commit

Permalink
silence clang warning about missing braces for subobject initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Oct 19, 2023
1 parent c1e26d7 commit 20237db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/stdexec/execution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5401,7 +5401,7 @@ namespace stdexec {
template <scheduler _Scheduler, sender _Sender>
auto operator()(_Scheduler&& __sched, _Sender&& __sndr) const {
using _Env = __t<__environ<__id<__decay_t<_Scheduler>>>>;
auto __env = __join_env(_Env{(_Scheduler&&) __sched}, stdexec::get_env(__sndr));
auto __env = __join_env(_Env{{(_Scheduler&&) __sched}}, stdexec::get_env(__sndr));
auto __domain = query_or(get_domain, __sched, default_domain());
return stdexec::transform_sender(
__domain, make_sender_expr<schedule_from_t>(std::move(__env), (_Sender&&) __sndr));
Expand Down Expand Up @@ -5489,7 +5489,7 @@ namespace stdexec {
return stdexec::transform_sender(
__domain,
make_sender_expr<transfer_t>(
__join_env(_Env{(_Scheduler&&) __sched}, stdexec::get_env(__sndr)),
__join_env(_Env{{(_Scheduler&&) __sched}}, stdexec::get_env(__sndr)),
(_Sender&&) __sndr));
}

Expand Down Expand Up @@ -5561,7 +5561,7 @@ namespace stdexec {
static auto get_env(const _Sender& __sndr) noexcept {
return __apply(
[&]<class _Scheduler>(const _Scheduler& __sched, auto&&...) noexcept {
return __t<__schedule_from::__environ<__id<_Scheduler>>>{__sched};
return __t<__schedule_from::__environ<__id<_Scheduler>>>{{__sched}};
},
apply_sender((_Sender&&) __sndr, __detail::__get_data()));
}
Expand Down Expand Up @@ -6529,7 +6529,7 @@ namespace stdexec {
return stdexec::transform_sender(
__domain,
make_sender_expr<transfer_when_all_t>(
_Env{(_Scheduler&&) __sched}, (_Senders&&) __sndrs...));
_Env{{(_Scheduler&&) __sched}}, (_Senders&&) __sndrs...));
}

template <sender_expr_for<transfer_when_all_t> _Sender>
Expand Down Expand Up @@ -6573,7 +6573,7 @@ namespace stdexec {
return stdexec::transform_sender(
__domain,
make_sender_expr<transfer_when_all_with_variant_t>(
_Env{(_Scheduler&&) __sched}, (_Senders&&) __sndrs...));
_Env{{(_Scheduler&&) __sched}}, (_Senders&&) __sndrs...));
}

template <sender_expr_for<transfer_when_all_with_variant_t> _Sender>
Expand Down

0 comments on commit 20237db

Please sign in to comment.