G
George2
Hello everyone,
I am confused what is the type of *this? Type of reference to instance
or type of instance?
Looks like both code can compile, no warning messages. Any ideas?
thanks in advance,
George
I am confused what is the type of *this? Type of reference to instance
or type of instance?
Looks like both code can compile, no warning messages. Any ideas?
Code:
class A{
A& foo1()
{
return *this;
}
A foo2()
{
return *this;
}
};
thanks in advance,
George