by golemotron · 7y ago · 0 comments
This must be some new definition of the word 'unusable.'
Worse, the compiler is entitled to use saturation arithmetic if you've assumed wrapping.
That might be a question for developers of the billons of lines of C++ in production. Asking them, you'd discover how they they actually use the builtin types.
typedef Int int32_t;
for the entire compilation as a whole, and when things get screwy just bump Int up to int64_t and take the performance hit for the extra bit of safety