Skip to content
Permalink
Browse files

Merge pull request #4103 from ShmuelLevine/patch-3

Add this to lambda capture list
  • Loading branch information...
hkaiser committed Oct 9, 2019
2 parents fa2ae9e + 914212c commit 25fcb7831d8bc5ec0f4ae690ff9873c95e4926d0
Showing with 8 additions and 10 deletions.
  1. +1 −1 hpx/lcos/local/channel.hpp
  2. +7 −9 hpx/runtime/parcelset/parcelhandler.hpp
@@ -267,7 +267,7 @@ namespace hpx { namespace lcos { namespace local
}
local::packaged_task<T()> pop_pt()
{
return local::packaged_task<T()>([=]() -> T { return get(); });
return local::packaged_task<T()>([this]() -> T { return get(); });
}

public:
@@ -197,11 +197,10 @@ namespace hpx { namespace parcelset
/// id (if not already set).
HPX_FORCEINLINE void put_parcel(parcel p)
{
auto f =
[=](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));
}
@@ -238,10 +237,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(), [=](
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 25fcb78

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