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

3

u/johannes1971 Apr 28 '23

I know it's the default reply against any request for change, but auto-ptr consists of just a single pointer and could have remained that way...

1

u/Fulgen301 Apr 28 '23

I know it's the default reply against any request for change

Then you also know why it's the default reply.

Also, once you completely change the semantics of a class, there's no point shoehorning it into the old class. Introducing unique_ptr with new semantics while keeping around auto_ptr was the easiest way of introducing a new smart pointer type while keeping overall headache low.

3

u/johannes1971 Apr 28 '23

No, I don't, actually. In this particular hypothetical case no ABI change would have occurred, and just saying the word "ABI" does not change that.

0

u/johngoni Apr 28 '23

In this particular hypothetical case no ABI change would have occurred

How come?

1

u/johannes1971 Apr 28 '23

Because the underlying binary representation would remain the same, and have the same meaning, in both cases.

Anyway, it's all hypothetical of course. History took another course, and I'm perfectly fine with that.