3 ms·
Perhaps we can have both. E.g. __checked__ int a; // aborts on overflow __throwing_checked__ int b; // throws exception on overflow You cou
by amelius 6y ago
Perhaps we can have both. E.g.
__checked__ int a; // aborts on overflow
__throwing_checked__ int b; // throws exception on overflow
You could have the same syntax for unsigned ints.
- mhh__ 6y agoD has checkedint which does this cleanly in a template