|
|
|
|
|
by Gibbon1
1171 days ago
|
|
That's not an argument to keep live grenades laying around, it's an argument to remove them from the spec. Like signed int being UB. Define it to have 2 complement semantics. Problem solved. I'm sure the nutters trying to extend C++ with templates will howl but this is C not C++. And seriously C++ is dead man walking at this point. |
|
It does not make signed overflow defined behaviour. This would prevent integer operation reordering as an optimization, leading to slower code.