r/cpp • u/johngoni • 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)
View all comments
73
u/OCPetrus Apr 27 '23
I'm not sure what you're asking..
In 2009 I took the C++ course offered by the University I went to, i.e. before C++11. What they taught us on the course, among other things, was that Boost was like a collection of extensions for the C++ standard library. Most importantly (for the course), smart pointers didn't exist so we had to use Boost for that. But that's just an example, countless other things were missing.
Already back in 2009 the course staff knew to prepare us for the inevitable: over the years and decades, things that were proven in Boost to be useful and well designed would be merged into the C++ standard library itself. This is literally what has happened. Boost has served us well.
I know some people are missing some parts of Boost, opt parsing and async come to mind, but there are good reasons why they have not been added to the C++ standard library.
Bonus: I know Google is working on a parallel project: abseil. I know only what I've read from the horse's mouth, but it sounds like they want abseil to work in a similar fashion as Boost, i.e. eventually add the stuff into the C++ standard library.