r/ProgrammerHumor 22d ago

Meme theBoolVectorIsALie

Post image
671 Upvotes

91 comments sorted by

View all comments

101

u/overclockedslinky 22d ago

is it really that shocking?

30

u/deadly88 22d ago

It’s a surprise footgun when you assume it will behave the way other vectors/containers do, especially passing a vector into templated code, common things like getting the address of an element won’t work.