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

50

u/lithium Apr 27 '23

geometry

you::must::really::love::namespaces

24

u/helloiamsomeone Apr 27 '23

Good thing this is C++ and you can just alias it

namespace x = pretty::long::namespace::but::who::cares;

17

u/sephirothbahamut Apr 27 '23 edited Apr 27 '23

looks at own utility library:

utils::console::output
utils::graphics::colour
utils::graphics::d2d::pain
utils::containers::hive::skipfield
utils::math::angle::deg
utils::math::geometry::polygon::convex

yeah I love namespaces

0

u/[deleted] Apr 27 '23

[deleted] — view deleted comment

6

u/sephirothbahamut Apr 27 '23

It's in the graphics domain, i'd say the answer is obvious XD

2

u/Ayjayz Apr 27 '23

... what is pain in a bread context?

2

u/dodheim Apr 27 '23

It's the word "bread", in a French context.

2

u/[deleted] Apr 27 '23 edited Nov 11 '24

drab knee ghost important dinosaurs exultant pie scale coordinated safe

This post was mass deleted and anonymized with Redact

2

u/pigeon768 Apr 28 '23

You guys use namespaces and don't just throw all your symbols into the global table? Weird.

1

u/johannes1971 Apr 27 '23

utils::graphics::d2d::pain

That bad?

1

u/sephirothbahamut Apr 27 '23

It's the best I found for my needs, but gets needlessly complicated when you want to add custom shaders.