Skip to content

Commit 55f4495

Browse files
fix name shadowing
1 parent 3c634bb commit 55f4495

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/boost/capy/asio/boost.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ struct boost_asio_init_promise_type
600600
asio_executor_adapter ex_ = std::move(ex);
601601
h.destroy();
602602

603-
auto handler =
603+
auto handler_ =
604604
std::apply(
605605
[&](auto ... args)
606606
{
@@ -609,8 +609,8 @@ struct boost_asio_init_promise_type
609609
args_);
610610

611611
auto exec =
612-
boost::asio::get_associated_immediate_executor(handler, ex_);
613-
boost::asio::dispatch(exec, std::move(handler));
612+
boost::asio::get_associated_immediate_executor(handler_, ex_);
613+
boost::asio::dispatch(exec, std::move(handler_));
614614
}
615615
void await_resume() const {}
616616
};

include/boost/capy/asio/standalone.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,16 +561,16 @@ struct boost_asio_standalone_init_promise_type
561561
asio_executor_adapter ex_ = std::move(ex);
562562
h.destroy();
563563

564-
auto handler =
564+
auto handler_ =
565565
std::apply(
566566
[&](auto ... args)
567567
{
568568
return ::asio::append(std::move(h_), std::move(args)...);
569569
},
570570
args_);
571571

572-
auto exec = ::asio::get_associated_immediate_executor(handler, ex_);
573-
::asio::dispatch(exec, std::move(handler));
572+
auto exec = ::asio::get_associated_immediate_executor(handler_, ex_);
573+
::asio::dispatch(exec, std::move(handler_));
574574
}
575575
void await_resume() const {}
576576
};

0 commit comments

Comments
 (0)