LR <lruss@superlink.net> wrote in message...
>
> class A {
> public:
> A &x(const int x) {
> return *this;
> }
> };
>
> class B : public A {
> public:
> B &x(const B &x) {
> return *this;
> }
> };
>
> int main() {
> B q;
> B p;
> q.x(1); // error
> q.x(p);
> }
>
> LR
Thanks for the spaces vs. tabs. Looks like it should now (indented). <G>
--
Bob R
POVrookie