#include <iostream>
usingnamespace std;
class A
{
public:
A()
{
cout << "default A" << endl;
}
A(const A&) // copy constructor
{
cout << "copy A" << endl;
}
A f1()
{
A a;
return a;
}
};
int main()
{
A a;
A b = a.f1(); // shouldn't here be first of all the default and then copy
// constructor called, please explain why it's not like that
return 0;
}