这有什么区别:
TestClass t;
还有这个:
TestClass t = TestClass();
我希望第二个可能会调用构造函数两次然后调用operator =,而是调用构造函数一次,就像第一次一样.
c++ constructor default-constructor copy-assignment
c++ ×1
constructor ×1
copy-assignment ×1
default-constructor ×1