safe-rules icon indicating copy to clipboard operation
safe-rules copied to clipboard

C++20 移除了“对有符号整数进行超出取值范围的左移运算”导致的未定义行为

Open frederick-vs-ja opened this issue 1 year ago • 1 comments

48. 对有符号整数进行超出取值范围的左移运算

这里的未定义行为在 C++20 移除了,见 P1236R1

frederick-vs-ja avatar Dec 19 '23 09:12 frederick-vs-ja

这个问题先记下,感谢提醒~

brotherbeer avatar Dec 20 '23 01:12 brotherbeer