This related issue suggests that the error can be fixed by replacing asio::io_service with asio::io_context:
https://github.com/chriskohlhoff/asio/issues/1653#issuecomment-3150746619
This related issue suggests that the error can be fixed by replacing asio::io_service with asio::io_context:
https://github.com/chriskohlhoff/asio/issues/1653#issuecomment-3150746619