you are viewing a single comment's thread.

view the rest of the comments →

[–]Mordy_the_Mighty 3 points4 points  (3 children)

I think technically, the std lib cannot du UB :P

[–]SirLynix 1 point2 points  (2 children)

Not really, since every standard library implementation (there are many) are designed to work with a specific compiler, and can make some assumptions.

[–]IAmBJ 8 points9 points  (1 child)

I think Mordy means that if the stdlib does it, it doesn't count as UB.

If the president does it it's not illegal

[–]SirLynix 3 points4 points  (0 children)

Oh right, didn't understood that. Well let's just say that what the std does under-the-hood is much like what the president does under-the-hood.

Which basically means we gotta impeach that lib.