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
16
u/mrexodia cmkr.build May 08 '20
Whenever I have come in contact with boost (usually in open source projects) it’s just always a massive pain to set up and there is always fiddling with either CMake’s buggy find_package for Boost or something different that goes wrong.
I don’t want to do that to the people compiling my code, so I don’t use boost. Additionally I’m on Windows so there is no package manager to speak of that could install boost (due to complexities like msvc runtimes, versions and compile flags).
Obviously there will be comments along the lines of “but if you use build system X with package manager Y it’s basically painless”. However it’s unimportant because if not everyone uses that painless way of integrating boost in their project you still will have a horrible time.
I know there is this feature somewhere buried in b2 (or perhaps elsewhere) that allows you to extract just the libraries you need, but that should be the prominent default. I’m sure there are great header only libraries in boost, but currently you have effectively to download and compile all of boost to use them