asio
asio copied to clipboard
Issue with execute in 1.29
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 execute
was deprecated and recently removed. The documentation indicates to use the member function instead.