Open anarthal opened 4 months ago
This limits the use of bind_executor in generic code.
bind_executor
#include <boost/asio/bind_executor.hpp> #include <boost/asio/system_executor.hpp> #include <boost/asio/io_context.hpp> namespace asio = boost::asio; int main() { asio::io_context ctx; auto tok = asio::bind_executor( asio::system_executor(), asio::bind_executor( ctx.get_executor(), []{} ) ); }
https://godbolt.org/z/Pdc913W56
This limits the use of
bind_executor
in generic code.https://godbolt.org/z/Pdc913W56