kearns@read.columbia.edu (Steve Kearns) (06/23/89)
I am using Cfront 1.2; I do not understand why my definition
of adv() gives the error it does. Can someone help?
class plist {
int dummy;
plist();
~plist();
plist(plist& p2);
plist& operator=(plist& p2);
friend plist rest(plist& p2);
plist& adv();
};
inline plist& plist::adv()
{ return (*this = rest(*this)); } // does not compile
// error message is "un initialized reference _rresult"
// { *this = rest(*this); return *this; } // compiles fine
Thanks,
-steve