Skip to content

boost io_context::wrap is deprecated #10476

@tobtoht

Description

@tobtoht
/Users/runner/work/monero/monero/src/cryptonote_protocol/levin_notify.cpp:357:57: warning: 'wrap' is deprecated: Use boost::asio::bind_executor() [-Wdeprecated-declarations]
  357 |         this_zone.flush_txs.async_wait(this_zone.strand.wrap(fluff_flush{std::move(zone)}));
      |                                                         ^
/opt/homebrew/include/boost/asio/io_context_strand.hpp:246:3: note: 'wrap' has been explicitly marked deprecated here
  246 |   wrap(Handler handler)
      |   ^

strand.wrap(on_handshake)

this_zone.flush_txs.async_wait(this_zone.strand.wrap(fluff_flush{std::move(zone)}));

channel.strand.wrap(send_noise{std::move(zone), index, core})

https://www.boost.org/doc/libs/latest/doc/html/boost_asio/reference/io_context/wrap.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions