Open akkaze opened 4 years ago
My current goal is to make it compile with networking TS (already supported in GCC without any external dependency).
I think this is more interesting (looking forward to a next C++ standard which includes the networking TS) than replacing boost with standalone asio.
In any case, if you have a good reason to skip the networking TS and focus on standalone asio, I will consider it.
@juliobg below is possible, I use it in my code.
#ifdef USE_BOOST
#include "boost/asio/ts/socket.hpp"
#include "boost/asio/ts/buffer.hpp"
#include "boost/asio/ts/..." // obviously illustration
#else
#include "asio/ts/socket.hpp"
#include "asio/ts/buffer.hpp"
#include "asio/ts/..." // obviously illustration
#endif // USE_BOOST
And it's faster to compile compared to <asio.hpp>
or <boost/asio.hpp>
, you only take what you need.
This library won't need much work for that to happen.
Edit: Needs work but doable
as far as I know,asio does not depend on boost now.So can you provide a branch that does not depend on boost? after all, boost is too large and complicated