r/ProgrammerHumor • • 11d ago

Meme cppAndItsVectorBooleans

Post image
3.4k Upvotes

214 comments sorted by

View all comments

4

u/Buyer_North 11d ago

people just hating because they dont understand cpp...not gonna say why, because you dont deserve it if you dont know it

25

u/Aurii_ 11d ago

You don't answer it because you yourself have no idea

6

u/-Ambriae- 11d ago

Please explain in what world is implicitly converting a vector<bool> to a bitset normal?

2

u/ih-shah-may-ehl 8d ago

There are plenty of things the CPP committee itself had brutal fights over and eventually stripped back out. Stop kissing ass.

2

u/Droggl 11d ago

Its not that people don't see why the bit vector implementation can be useful, but its really not unreasonable to see "vector<bool>" and expect the type to be a vector and store bools (it does neither though)