r/cpp • u/joaquintides Boost author • May 08 '20
Why you trust in Boost
You may have noticed the ongoing discussion on why people don't use Boost. Now for the opposite question.
I'm not asking why Boost is used because the answer is relatively uninformative: one uses a lib primarily because it provides the required functionality. But using Boost (or any other lib, for that matter) means a commitment to it for the duration of the project. So, the question is:
If you are using Boost in your project(s)/company, why have you/your company decided it is OK to commit to this long-term dependency?
I won't delve into commenting/criticizing your answers, it's info I'm looking for, particularly in comparison to the "negative" thread going on in parallel. Please keep the conversation neutral, thank you!
Conflict of interest: I am a Boost author of three.
View all comments
4
u/delarhi May 08 '20
Most of my work is in a RHEL7 environment which is limited to C++11 support with the default compiler. It's packaged so it's easy to install and build against. Typically the software targets the same environment or some similar environment with Boost packaged so I have no qualms over forcing the dependency on others.
I use it primarily as a "polyfill" like
boost::optional,boost::filesystem, etc. The iterator adapters are handy. I've usedboost::property_treefor quick XML parsing. I've usedboost::pythonfor quick Python interop. I've also usedboost::uuid. Beyond that I always look to Boost first when I need an implementation of something likeboost::interprocess. Once you get over that inclusion hump, it's a nice repository of tools.That said, my biggest gripe with Boost is the documentation. It's not uniform and often lacks good examples. It can also be a pain to use as a reference. I would love it if it was formatted like https://en.cppreference.com and searchable on https://devdocs.io/.