04-25-2006
6,
0
Join Date: Mar 2004
Last Activity: 25 July 2006, 5:30 AM EDT
Location: Germany
Posts: 6
Thanks Given: 0
Thanked 0 Times in 0 Posts
friend operator
Hello,
I have a problem by compiling a class with the following friend function in Header file:
class X{
private:
......
protected:
.......
public:
friend ostream& operator<<(ostream& target, const PARA_DSC& para);
};
the compiler output is:
"X.hxx", line 346: Warning (Anachronism): Class friends require an explicit "class".
"X.hxx", line 346: Error: "," expected instead of "&".
1 Error(s) and 1 Warning(s) detected.
*** Error code 1
Has anybody an idea, where the problem coud be?
Greetings
nik