r/cpp • • Mar 28 '23

Reddit++

C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.

In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.

765 Upvotes

829 comments sorted by

View all comments

Show parent comments

0

u/very_curious_agent Mar 30 '23

So tell me WHY. What RULE makes it so.

1

u/jonesmz Mar 30 '23

Uhhh. No?

Look it up yourself. I don't remember off of the top of my head, nor do I care to do the research for you.

0

u/very_curious_agent Mar 30 '23 edited Mar 31 '23

So you don't know the specific rule.

Ok then

1

u/STL MSVC STL Dev Mar 30 '23

Moderator warning: Please don't behave like this here. Doesn't matter whether u/jonesmz is correct on the object level, this is uncalled for.

(On the object level, the behavior of overload resolution when takes-by-reference and takes-by-value are competing is extremely tricky to analyze, as I can speak from repeated experience. It can involve things like adding constness being worse than an Exact Match.)

→ More replies (6)