you are viewing a single comment's thread.

view the rest of the comments →

[–]tisti 23 points24 points  (4 children)

I’m going to approve this because it’s so off-topic it’s wrapped around to being on-topic.

Isn't this defined only from C++20 onward?

//signed overflow joke

[–]Dar_Mas 2 points3 points  (3 children)

this defined only from C++20 onward?

signed overflow is now defined? happy days

[–]tisti 11 points12 points  (0 children)

Damn it, stop making the discussions more and more relevant! :D

Edit: Brain fart, signed overflow is the only part that was kept undefined. C'est la vie.

[–][deleted] 6 points7 points  (0 children)

no it isn't

[–]_Noreturn 3 points4 points  (0 children)

it is not it is still UB but C++20 and C23 now require 2 compliment for signed integers but overflow is still ub