Before C++17, the below code snippet appears to cause the compiler to complain, but it will work since C++17.
I am looking at cppreference page, in which I don't see any updates on it for C++17. But, instead, I only see that prvaule operand will return compiler to omit copy and move.
Can anyone point me to the C++ standards on this change?
atomic<int> atoc_1 = 1;