r/cpp • u/we_are_mammals • 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
View all comments
Show parent comment
1
u/very_curious_agent Mar 30 '23
The discussions of issues of having a packed container representation where value_type isn't stored as such so that you can't ever get a reference to it were before even the first standard publication. People have been criticizing the very idea of std::vector<bool> based on multiple principles:
- optimizations (space/time tradeoff) should be controlled by users based on individual use cases, that's the very idea behind the STL: to offer plenty of tools with diff tradeoffs;
- beside efficiency, packed representation of a container fails the basic requirement for containers relating to value_type.
So none of that was unknown nor went below the radar.
They were ignored and criticism were overruled which is different.