From 97c2fdb0dcf0fe1abb65387df6f80b17068c0ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dietmar=20K=C3=BChl?= Date: Mon, 13 Jan 2025 21:00:20 +0000 Subject: [PATCH] fix warnings --- include/beman/execution26/detail/basic_operation.hpp | 6 +++--- include/beman/execution26/detail/schedule_from.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/beman/execution26/detail/basic_operation.hpp b/include/beman/execution26/detail/basic_operation.hpp index 414ff67e..00ab3633 100644 --- a/include/beman/execution26/detail/basic_operation.hpp +++ b/include/beman/execution26/detail/basic_operation.hpp @@ -37,14 +37,14 @@ struct basic_operation : ::beman::execution26::detail::basic_state; inner_ops_t inner_ops; - basic_operation(Sender&& sender, Receiver&& receiver) noexcept( + basic_operation(Sender&& sender, Receiver&& rcvr) noexcept( noexcept(::beman::execution26::detail::basic_state(::std::forward(sender), - ::std::move(receiver))) && + ::std::move(rcvr))) && noexcept(::beman::execution26::detail::connect_all(this, ::std::forward(sender), ::beman::execution26::detail::indices_for()))) : ::beman::execution26::detail::basic_state(::std::forward(sender), - ::std::move(receiver)), + ::std::move(rcvr)), // NOLINTBEGIN(bugprone-use-after-move,hicpp-invalid-access-moved) //-dk:TODO deal with moving the sender twice inner_ops(::beman::execution26::detail::connect_all( diff --git a/include/beman/execution26/detail/schedule_from.hpp b/include/beman/execution26/detail/schedule_from.hpp index 9894e830..fb7ec49e 100644 --- a/include/beman/execution26/detail/schedule_from.hpp +++ b/include/beman/execution26/detail/schedule_from.hpp @@ -124,8 +124,8 @@ struct impls_for<::beman::execution26::detail::schedule_from_t> : ::beman::execu return noexcept(::beman::execution26::connect(::beman::execution26::schedule(::std::declval()), receiver_t{nullptr})); } - explicit state_type(Scheduler& sch, Receiver& receiver) noexcept(nothrow()) - : state_base{receiver}, + explicit state_type(Scheduler& sch, Receiver& rcvr) noexcept(nothrow()) + : state_base{rcvr}, op_state(::beman::execution26::connect(::beman::execution26::schedule(sch), receiver_t{this})) {} };