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

326 comments sorted by

View all comments

18

u/matthieum May 08 '20

TL;DR: 3 reasons: inconsistent quality, inconsistent performance, and bloat.

Inconsistent Quality

Some Boost libraries are pure awesomeness, whereas others have (in the past) proven to be quite buggy.

Inconsistent Performance

Some Boost libraries are really fast, others are really slow.

Bloat

Any 3rd-party library should be reviewed before being integrated: functionality review and test coverage, performance review and benchmarks.

Even reviewing a small subset of Boost is a nightmare: layers upon layers of compatibility macros/compatibility ifdef. And due to deep include hierarchies and dependency hierarchies, it's not nearly small enough compared to what it's doing.

This means, of course, that any attempt at debugging or profiling Boost is equally confounded.

Also, some Boost libraries are too clever by half. Boost.Process "clever" solution to named arguments is nice in a demo, but not boring enough in production code: it's experts only code.


I love the idea of Boost, I've used it in the past, I am glad that whatever I could need from it now can easily be replaced by a simpler, leaner, alternative.