asio icon indicating copy to clipboard operation
asio copied to clipboard

Issue with execute in 1.29

Open diehard2 opened this issue 1 year ago • 1 comments

This worked in 1.28.x and is failing in 1.29. Reduced to simplest reproducer for brevity

#include "asio.hpp" // NOLINT

error: ‘execute’ is not a member of ‘asio::execution’

#include "asio.hpp"  // NOLINT
struct DummyExecutor {
    template<typename F>
    void execute(F&&) const {};
};

void foo() 
{
  asio::execution::execute(DummyExecutor{}, []() mutable {
  });
}

diehard2 avatar Jan 23 '24 22:01 diehard2

@diehard2 execute was deprecated and recently removed. The documentation indicates to use the member function instead.

justend29 avatar Jan 23 '24 22:01 justend29