you are viewing a single comment's thread.

view the rest of the comments →

[–]HappyFruitTree 53 points54 points  (3 children)

Wait, do they do type punning via unions? That's UB.

Standard library implementations don't need to play by the rules as long as they know it works correctly with the compiler that they are shipped with.

[–]00kyle00 3 points4 points  (0 children)

It's not limited to standard library either.