A note of caution.
In all but the most exceptional of cases, you will want one io_service per
application.
Rather than tie the entire application to one instance of a class, which
might make testing difficult, you may want to consider providing the
io_service to the Foo as a dependency injection, with its lifetime
controlled by main().
Example (including the fixed constructor):
#include
On Mon, Jun 18, 2018 at 6:13 AM Álvaro Cebrián Juan via Boost-users
wrote: Why doing sock(ios); doesn't work?
What is the complete error message from the compiler?
Thanks _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users