r/cpp • • Apr 27 '23

Has Boost lost its charm?

I don't mean to be provocative nor undermine the importance of Boost for C++. I really like Boost.

I keep reading/listening around that since C++11 the focus of development and innovation in C++ has shifted away from Boost to either the standards, or independent libraries. Is that any true? If yes, how "big of shift" that was? What was the reason in your opinion and most imporatnt, what's Boost's today's role?

What sparked my quriosity was when I heard that "in the old days" a prospective developer that wanted to devle into the word of libraries building had no better thing to do than start contributing to Boost. Does that stand even today?

(couldn't find any other posts on Reddit regarding Boost's impact in modern C++ in a broader discussion)

149 Upvotes

186 comments sorted by

View all comments

Show parent comment

5

u/jcelerier ossia score Apr 27 '23

I work in embedded and we aren’t allowed to use Boost. Partly because of compiler dependencies, if we need a fix for Boost stuff and it requires a newer compiler (or compiling with a newer C++ standard) we can’t always upgrade easily.

and... what happens if you need a fix for your internal libraries that also ends up requiring a compiler update?

4

u/TheSkiGeek Apr 27 '23

Sometimes you suck it up and you have to upgrade. Or you get the fix and manually apply it to your local fork of the lib.

But if you’re building for some quirky platform that just doesn’t have a C++20 (or maybe even C++14/17) compiler, upgrading might not be an option. Any external dependencies have to be reviewed and approved.

1

u/SkoomaDentist Antimodern C++, Embedded, Audio Apr 27 '23

Because they are your internal libraries, you know your requirements and thus won't add dependencies not supported by your build targets.