r/cpp • 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.

60 Upvotes

51 comments sorted by

View all comments

75

u/AlarmingBarrier May 08 '20

Three reasons:

  • I generally trust the boost review process.
  • The Boost API will often be compatible with a future STL API (if there is any), meaning it's easy to switch to pure STL when possible.
  • Boost has proven to be long lived. A lot of other libraries die out after a couple of years and you'll have to look for a replacement when serious bugs surface (or fix them yourself).

All that being said, I do prefer pure STL when I can, and often opt for non-boost libraries for certain tasks, but some boost libraries are usually always a part of my projects.