asio_http icon indicating copy to clipboard operation
asio_http copied to clipboard

a clean branch without boost

Open akkaze opened this issue 6 years ago • 2 comments

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

akkaze avatar Jan 02 '20 03:01 akkaze

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 avatar Jan 07 '20 23:01 juliobg

@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

ibroheem avatar Feb 27 '20 09:02 ibroheem