MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xxfw9i/cppanditsvectorbooleans/19spvqonv6vmt/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 14d ago
214 comments sorted by
View all comments
Show parent comment
-5
Sort of, the compiler is allowed to pack sequential book fields in classes into single bytes
10 u/unknown_alt_acc 13d ago The compiler is absolutely not allowed to pack contiguous bools. That breaks the addressability requirement of objects. If you want packed Boolean values, the language gives you plenty of ways to express that.
10
The compiler is absolutely not allowed to pack contiguous bools. That breaks the addressability requirement of objects. If you want packed Boolean values, the language gives you plenty of ways to express that.
View all comments
Show parent comment
-5
u/nimrag_is_coming 13d ago
Sort of, the compiler is allowed to pack sequential book fields in classes into single bytes