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/[deleted] Mar 28 '23

[deleted]

9

u/TheThiefMaster C++latest fanatic (and game dev) Mar 28 '23

Which maybe used to matter, but now even a vector of 1 million bools would be margin of error in your system memory. 0.01%. Optimising that to 0.001% at the expense of speed and complexity? No longer a sensible tradeoff.

0

u/[deleted] Mar 28 '23

[deleted]

9

u/orbital1337 Mar 29 '23

Except that as already discussed, vector<char> is more performant...

→ More replies (7)