我是C++初学者,想了解原因
return std::list<int>();
需要括号,但是
std::list<int> foo;
不需要括号.这些构造函数调用之间有什么区别?
c++ constructor
c++ ×1
constructor ×1