r/ProgrammerHumor • • 10d ago

Meme cppAndItsVectorBooleans

Post image
3.4k Upvotes

214 comments sorted by

View all comments

Show parent comment

16

u/Eearslya 10d ago

That's the fun part, we already do have std::bitset.

9

u/setibeings 10d ago

alright, then we need to replace vector with a type that doesn't randomly do something different when it holds bools in particular. lol.

2

u/danielcw189 10d ago

and also give it a name that isn't misleading like "vector"

7

u/Ayjayz 10d ago

It's fixed size though