Belebele
9/1/2008 3:52:00 PM
> in my compiler, it complains that `undefined g()', a link-time error.
> btw, my compiler is mingw-g++.
That tells me that the problem I had may be caused by a VC++ bug, or
rather, incomplete compliance to the standard.
> if you have defined g(), then it should depend on how you return the
> result of g().
It should not depend on anything. The returned value of g is a
reference and, as far as I know, reference and pointers should be
passed around regardless of the definition of the class of the
underlying object.