C
Corno
Hi all,
I thought that the 2 following functions would have the same effect;
void first()
{
ClassA a("bla");
anotherFunction(a);
}
void second()
{
anotherFunction(ClassA("bla"));
}
but when using the second alternative I get a 'calling pure virtual
function' error.
Can anybody explain what the difference is between the 2 that would explain
the error?
TIA,
Corno
I thought that the 2 following functions would have the same effect;
void first()
{
ClassA a("bla");
anotherFunction(a);
}
void second()
{
anotherFunction(ClassA("bla"));
}
but when using the second alternative I get a 'calling pure virtual
function' error.
Can anybody explain what the difference is between the 2 that would explain
the error?
TIA,
Corno