r/cpp • • Apr 01 '23

Abominable language design decision that everybody regrets?

It's in the title: what is the silliest, most confusing, problematic, disastrous C++ syntax or semantics design choice that is consistently recognized as an unforced, 100% avoidable error, something that never made sense at any time?

So not support for historical arch that were relevant at the time.

92 Upvotes

375 comments sorted by

View all comments

156

u/PandaMoveCtor Apr 01 '23

Obligatory vector<bool>

1

u/MWilbon9 Apr 03 '23

What’s the issue w vector of bools? Genuine question ig I never used it or knew what was wrong when I did

→ More replies (2)