std::exchange working differently with VC++ and gcc

后端 未结 0 1032
慢半拍i
慢半拍i 2020-11-21 16:17

following code:

#include 

int main()
{
  auto pos = 0;
  auto rel = pos - std::exchange(pos, pos + 1);         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题