3 ms·
I agree 99.44%. The behavior of shift operations on signed integers will be fixed in C++20 and C2x, as part of the effort to require twos complement representa
by raphlinus 6y ago
I agree 99.44%.
The behavior of shift operations on signed integers will be fixed in C++20 and C2x, as part of the effort to require twos complement representation. It is a massive potential source of UB in currently standardized C and C++.
All the other problems listed remain.
[1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0907r1.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p090...
[2]: http://eel.is/c++draft/expr.shift#2 http://eel.is/c++draft/expr.shift#2
- stephencanon 6y agoEven after C2x is finalized, people will be using C compilers that don't conform to C++20 and C2x for at least another decade, so you'll forgive me if I don't hold my breath =)