Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a clean branch without boost #4

Open
akkaze opened this issue Jan 2, 2020 · 2 comments
Open

a clean branch without boost #4

akkaze opened this issue Jan 2, 2020 · 2 comments

Comments

@akkaze
Copy link

akkaze commented Jan 2, 2020

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

@juliobg
Copy link
Owner

juliobg commented Jan 7, 2020

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.

@ibroheem
Copy link

ibroheem commented Feb 27, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants