Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!dptg!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c++ Subject: Re: overload probelm? Message-ID: <9676@alice.UUCP> Date: 25 Jul 89 04:44:12 GMT References: <33951@grapevine.uucp> Distribution: na Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 22 In article <33951@grapevine.uucp>, parker@grapevine.uucp (Parker Waechter) writes: > The error it generates is: > "comp2.C", line 14: error: operator <<() is not a member of complex > > why not? Because friends aren't members. If you say class Foo { friend void bar(); }; then when you define bar(), you merely say void bar() { /* stuff */ } and not void Foo::bar() { /* stuff */ } -- --Andrew Koenig ark@europa.att.com