class A
{
public:
A()
{
}
A(A ©)
{
}
};
void foo(A a)
{
}
int main()
{
foo(A());
}
Will the temporary instance generated by calling A()
be deleted after the copy constructor has ended or after the function foo has ended?
Aucun commentaire:
Enregistrer un commentaire