prc@ERBE.SE (Robert Claeson) (12/10/88)
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