Hi.
I have a class say
class foo
{
//assugnment operator =
const foo &foo::operator=(const foo &rhs)
{
check for self assignment
if(this == &s)
return *this;
//assign members
SomeFooValue = s. SomeFooValue;
Foostdvector = foostdvector;
//and here I forgot to return any thing
}
};
//that should be a error in vc10 c++ should it not
and how did it even work with out the return ;
I was using it and it was working fine ??????