Why does this C++ snippet assigning a value to an rvalue compile?

后端 未结 0 641
长情又很酷
长情又很酷 2020-12-17 01:46

I was reading through the third edition of Effective C++ and I was surprised that a snippet on page 18 compiles. Here is a snippet inspired from that (compiler explorer link

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