#C++ Forward Referencing
21-Mar-90 07:56:29
Sb: #24509-#C++ Forward Referencing
Fm: Bob Goldrich 73427,2414
To: Phil Rose 76424,2071
Phil,
I found your answer in Lippman's book (p.179). I would have thought that
my friend declaration was ok, because all the line
friend void Matrix::trans( const Vector& v1 ) ;
says is "function 'trans' belonging to class 'Matrix' is granted access
to 'Vector's private members". No knowledge of Matrix is required other
than to give 'trans' access. That seems innocent enough, but I guess that's
the way it is. Doesn't seem right, somehow… -Bob