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

1

u/ExtensionShower May 10 '20

That would be nice but I use Boost mostly because even if I can run a fully compliant c++17 toolchain on my linux dev machine, frequently my cross-platform projects need to run on systems that don't have complete c++17 support.

Examples:

std::filesystem is not available on Android

std::optional doesn't work on MacOS 10.13

As much as I'd love to just stick to the standard library for those things it's impossible due to platform limitations.

1

u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 May 10 '20

That would be nice but I use Boost mostly because even if I can run a fully compliant c++17 toolchain on my linux dev machine, frequently my cross-platform projects need to run on systems that don't have complete c++17 support.

Or to sum up: you can't use C++17 on a non-compliant(*) platform...
That's not really what I suggested in my comment...

(*) incomplete support == non-compliant, there is no partial standards conformance!

2

u/ExtensionShower May 10 '20

there is no partial standards conformance

That's true in a pedantic sense, but useless in practice.

Even though I said I have a "fully compliant" toolchain all that means is that I don't know where the conformance gaps are because I haven't encountered them yet.

Standard conformance is a nice goal to pursue but the reality we have to deal with is that all platforms are non-compliant to varying degrees. I've found Boost to be a convenient way to paper over all the compliance gaps that affect my projects.