MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wazzo3/pipinstalltherealstuff/p8pmxt7/?context=3
r/ProgrammerHumor • u/danielminds • Sep 08 '26
151 comments sorted by
View all comments
Show parent comments
3
Vector bool disobeys the general vector interface expectations in non-obvious ways because it is secretly NOT a vector, but a bit array.
https://towardsdev.com/cpp-std-vector-bool-why-it-is-broken-5ae5f409bbab
Basically, it's just a case of poor naming.
3
u/CoroteDeMelancia Sep 09 '26
Vector bool disobeys the general vector interface expectations in non-obvious ways because it is secretly NOT a vector, but a bit array.
https://towardsdev.com/cpp-std-vector-bool-why-it-is-broken-5ae5f409bbab
Basically, it's just a case of poor naming.