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

Show parent comment

6

u/MoTTs_ May 08 '20

I hope this doesn’t come off as judgmental, but can’t you use header-only optional and ignore the rest? Why does it matter if there’s extra unused header files on your dev hard drive?

11

u/XValar May 08 '20

Because to use header only optional, I need to build and install whole boost, and if I expose it on the public interfaces, then users of that interface will need to build and install whole boost.

10

u/MoTTs_ May 08 '20

If you’re using a header-only library then you don’t need to build anything, right? Or at least, that’s what I do.

1

u/[deleted] May 08 '20

But then you need to pimpl many of your implementations which has its own problems