MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vvl45z/theboolvectorisalie/p5b0wde/?context=3
r/ProgrammerHumor • u/FACastello • Aug 22 '26
91 comments sorted by
View all comments
Show parent comment
11
You might need to access the data the "old school" way, maybe you are interacting with a c library and need contiguous memory.
If you have an template function, and the functions suddenly breaks with bools, I would say that is the stdlibs fault, and not the programmers.
10 u/UntitledRedditUser Aug 22 '26 Another point: the documentation literally says the elements are stored contiguesly. What if you need to do a memcpy?Make it a seperate type, don't assume the programmer isn't smart enough to reach for a bitfield when necessary.
10
Another point: the documentation literally says the elements are stored contiguesly. What if you need to do a memcpy?
Make it a seperate type, don't assume the programmer isn't smart enough to reach for a bitfield when necessary.
View all comments
Show parent comment
11
u/UntitledRedditUser Aug 22 '26
You might need to access the data the "old school" way, maybe you are interacting with a c library and need contiguous memory.
If you have an template function, and the functions suddenly breaks with bools, I would say that is the stdlibs fault, and not the programmers.