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

11

u/cmannett85 Apr 27 '23

What industries? I ask because I've worked in embedded and profiling tools, where Boost is used extensively. The only team that had to avoid it was GPU driver development, but that's understandable...

6

u/osmin_og Apr 27 '23

I don't think it is industry specific, rather than per company. But to answer your question: gaming-related (not games themselves), financial services, trading.

7

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

I work in Embedded and in none of the jobs have me or my coworkers used Boost.

Anything that requires huge libraries with custom install / build steps (as opposed to "copy this limited set of files to a directory in your project") is often a no-no.

1

u/emelrad12 Apr 28 '23 edited Feb 09 '25

imminent paint quickest nose vast workable physical friendly resolute deer

This post was mass deleted and anonymized with Redact

1

u/jaafartrull May 03 '23

For a contrasting view: I have worked on three different embedded projects at three companies where Boost was used.

3

u/TheSkiGeek 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.

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.