Article ID: 167348
Article Last Modified on 12/8/2003
/* Compile Options Needed: None */
class myClass
{
public:
const myClass f();
const myClass g();
};
int main( )
{
myClass mc;
mc.f().g(); // The return value of f() is const, but g()
// is not a const member function. Therefore,
// an error should be generated.
return 0;
}
Keywords: kbbug kbfix kbvc600fix kbcode KB167348