Skip to content
Permalink
Browse files

Removing `=` capture mode as it's not necessary.

  • Loading branch information...
hkaiser committed Oct 7, 2019
1 parent 5a58202 commit 914212c225d065336e8c248289a43fa7ebe86d9c
Showing with 8 additions and 10 deletions.
  1. +1 −1 hpx/lcos/local/channel.hpp
  2. +7 −9 hpx/runtime/parcelset/parcelhandler.hpp
@@ -266,7 +266,7 @@ namespace hpx { namespace lcos { namespace local
}
local::packaged_task<T()> pop_pt()
{
return local::packaged_task<T()>([=, this]() -> T { return get(); });
return local::packaged_task<T()>([this]() -> T { return get(); });
}

public:
@@ -194,11 +194,10 @@ namespace hpx { namespace parcelset
/// id (if not already set).
HPX_FORCEINLINE void put_parcel(parcel p)
{
auto f =
[=, this](boost::system::error_code const& ec, parcel const& p) -> void
{
invoke_write_handler(ec, p);
};
auto f = [this](boost::system::error_code const& ec,
parcel const& p) -> void {
invoke_write_handler(ec, p);
};

put_parcel(std::move(p), std::move(f));
}
@@ -235,10 +234,9 @@ namespace hpx { namespace parcelset
/// id (if not already set).
void put_parcels(std::vector<parcel> parcels)
{
std::vector<write_handler_type> handlers(parcels.size(), [=, this](
boost::system::error_code const& ec, parcel const & p) -> void {
return invoke_write_handler(ec, p);
});
std::vector<write_handler_type> handlers(parcels.size(),
[this](boost::system::error_code const& ec, parcel const& p)
-> void { return invoke_write_handler(ec, p); });

put_parcels(std::move(parcels), std::move(handlers));
}

0 comments on commit 914212c

Please sign in to comment.
You can’t perform that action at this time.