MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xxfw9i/cppanditsvectorbooleans/19sxbbrchip42/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 11d ago
214 comments sorted by
View all comments
Show parent comment
1
Wouldn't they get a compiler error doing so?
1 u/PastaPuttanesca42 6d ago I'm not completely sure that in some cases there wouldn't be undefined behaviour, but even if it fails to compile the error will likely be horrible and not easily understandable.
I'm not completely sure that in some cases there wouldn't be undefined behaviour, but even if it fails to compile the error will likely be horrible and not easily understandable.
View all comments
Show parent comment
1
u/4xe1 6d ago
Wouldn't they get a compiler error doing so?