-
Notifications
You must be signed in to change notification settings - Fork 639
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
Any possibility to make dependency on Boost not required(like ASIO does)? #2843
Comments
This is not planned, as there is an ongoing effort to make Boost modular. Therefore, you would only need to install the Boost libraries that Beast depends on. |
By looking at the Beast dependencies, even if Boost becomes modular, it would still require quite a lot of stuff:
Most of these are already available in C++17, so I would really appreciate if I don't need to bring dozen of additional stuff which C++ supports anyway. |
@ashtum If I would spend effort when I have free time in making the library to be like |
Sorry for the late reply; I missed the notification. Replacing the dependencies and maintaining two versions wouldn't be trivial, especially if you want to support C++11. What is the motivating use case for this change? Modular Boost is not far off, and each library would receive only what it needs, rather than the entire Boost libraries. |
Even if boost becomes modular, you are still using quite a lot of it. I don't plan to target C++11. Perhaps C++17. Older C++ versions will be only supported by the Boost variant. |
Yes, considering that Beast targets C++11, it had to use more facilities from Boost. However, how is this an issue, and what would be the benefits of reducing their usage? |
I guess the same benefits as standalone ASIO. No need to bring tons of 3rd party stuff(even if modular) given the C++ version we are using already have these facilities. |
The C++ Standard cannot even connect to the Internet... |
ASIO has minimal dependencies on Boost, and from the start, Chris has aimed to implement most of the facilities within ASIO itself. It's important to consider that, back then, there were no package managers for C++, and people generally disliked having dependencies. |
And now we have several package managers and all of them with their quirks or missing packages. :) In general I think a Boost only version would be acceptable if there are no Boost types leaking into public headers, so people don't end up using them by incident, but I believe this is also not the case. |
Version of Beast
353
Steps necessary to reproduce the problem
It is a very nice thing that ASIO can be used without Boost. Given that Beast manly needs functionality from ASIO I think the request of such support should be not that far fetched.
All relevant compiler information
N/A
The text was updated successfully, but these errors were encountered: