Path: utzoo!attcan!uunet!mcvax!enea!erbe.se!prc From: prc@ERBE.SE (Robert Claeson) Newsgroups: comp.lang.c++ Subject: bar is hidden? Message-ID: <424@maxim.ERBE.SE> Date: 9 Dec 88 21:55:51 GMT Organization: ERBE DATA AB Lines: 35 In a class I have the following operator declared: class foo { ... public: ... const foo const& operator=(const bar); ... }; The operator is defined as such: const foo const& foo::operator=(const bar oc) { ... return *this; } When I compile this stuff, I get the following error from cfront 1.1: error: bar oc is hidden. And when I re-define and re-declare the operator to: const foo const& operator=(const bar const&); It compiles just fine. Am I missing something and what the h**k does that error mean? -- Robert Claeson ERBE DATA AB rclaeson@ERBE.SE