Re:Checked integer arithmetic in the prospect of C23
by TazeTSchnitzel on Monday December 19, 2022 @05:10PM
(#34058450)
> it becomes a game of try to write it in a pattern that the compiler can recognize
Worse, in C or C++ you also need to find a way to do it without undefined behaviour. You can't just do the operation and see if the result matches expectations…
Worse, in C or C++ you also need to find a way to do it without undefined behaviour. You can't just do the operation and see if the result matches expectations…