Why this warning from IBM XL C/C++ compiler?

后端 未结 4 1335
感情败类
感情败类 2021-01-12 07:38

Here\'s a minimum code example that illustrates the problem:

#include 

class Thing
{
   // Non-copyable
   Thing(const Thing&);
   Thing         


        
4条回答
  •  天涯浪人
    2021-01-12 08:00

    What happens if you try naming the temporary Thing?

    Thing temp(3);
    show(temp);

提交回复
热议问题