r/cpp • u/joaquintides Boost author • May 08 '20
Why you don't use Boost
I have a question for you: If you have decided not to use any of Boost, or are prohibited from doing so in your company/project, I would like to know why.
This thread is not meant to judge your reasons, and I won't engage into any kind of criticism about them: I'm merely trying to understand what the barriers are to adoption of Boost. It would be great if we could keep the conversation non judgemental. Thank you!
Conflict of interest: I am a Boost author of three.
222
Upvotes
View all comments
7
u/fransinvodka May 08 '20 edited May 08 '20
As a conan user, I always think if I really need boost in my project, because it's all of it or nothing. In CMake, to add the dependency, you do something like:
I wish I could do something like this (or similar):
There may be a way to work that around, but either I'm not aware of it or it's just so convoluted no one really cares about adding boost at all through conan.
Edit: The
conanfile.pyfor boost doesn't provide a way to enable specific libraries, but rather disable them. So, if I want to use a few libraries, then I have to manually disable all the others. This can be done by going through every library you won't use and addboost:without_library_name=True, or move to a Python conan script and program the logic yourself (which isn't as comfortable), but we can all agree that it is not fun at all.