This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (4 messages)
Your right, thats a bug. I compiled it in Zortech and got the same error, then tried it on cfront and it compiles without error. What you are doing is perfectly legal. You should probably report that to Zortech technical support…
Right. See quote from ARM in John Dlugosz message to you regarding same.
The way I understand it, there was a decision not to allow partial definitions of a class, which is what you are doing when you declare a member function of an as yet undefined class as a friend. I'm not a compiler writer, but possibly this creates error checking problems…
A forward reference to a class only allows you to declare a pointer or reference to that class. The size of that class, and info about its members is unknown at that time, thus your attempt to declare a member function of the forward referenced class as a friend of…