R
red floyd
Someone asked me about the construct below:
class Base {
public:
// all other elements redacted
Base& operator=(const Base&);
};
class Derived : public Base {
public:
using Base:perator=;
};
My response was first, "don't do that". Followed by the observation
that 7.3.3 seems to allow this, but what I believe happens is that you
still get the compiler-provided Derived:perator=, with an override for
an RHS of const Base&. Is this correct?
Thanks,
red floyd
class Base {
public:
// all other elements redacted
Base& operator=(const Base&);
};
class Derived : public Base {
public:
using Base:perator=;
};
My response was first, "don't do that". Followed by the observation
that 7.3.3 seems to allow this, but what I believe happens is that you
still get the compiler-provided Derived:perator=, with an override for
an RHS of const Base&. Is this correct?
Thanks,
red floyd