|
|
Why is it different? |
|
|
|
|
19) In a shift operator expression E1<<E2 and E1>>E2, every value computation and side-effect of E1 is sequenced before every value computation and side effect of E2 (since C++17) https://en.cppreference.com/w/cpp/language/eval_order |