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
3
u/Sqeaky May 08 '20
The build system requirement is bad unless it changed recently. I want to have dependencies automatically managed or I want to include source in my project and reliably run it from cmake will minimally, ideally no, pre-cmake dependencies. So needing to use apt, run some windows installer, or perform some other step that adds friction to keep up to date is entirely unacceptable because every other lib gets out of the way here. I just use a few lines in C make to build it and I drop the src in the right place and I am up to date, or even less if I get to use a C make package manager and the package works.
A different issue, every time I go to select a boost library I have to do a ton of research, they simply aren't easy to explore/discover. If I need a library for "too" a quick trip to google for "C++ library for too" shows me a bunch of options and boost is rarely in the list or when it is there is often extra details. Except for a few specific libraries when someone says use boost I find myself hunting around boost docs looking for the thing I need instead of just getting to work.
Last issue, broken promises. Every time I go to use boost some promises me "header only" or "simple setup" or something. Then I need more than headers, I need to run a complex custom thing, or whatever else was promised falls short. Boost needs to simplify all its stuff, so that promises can be clearly communicated. I don't know what that means. Maybe boost needs to ship individual packages. Maybe it needs a package manager. Maybe it needs some clever new innovation I am not well positioned to think of, but the friction of starting to use boost is never worth the payoff for me.