Date: Mon, 21 Mar 2022 10:23:10 +0100
Hello.
You have not been very clear about how you want your new warning to work
but given the example you provided:
class base {
virtual void foo() {}
};
class derived: public base {
[non_overriden] base::foo; //will warn when called
};
I have to ask if
class derived: public base {
[[deprecated("Warn when called")]] void foo() { base::foo(); }
};
does what you want?
You have not been very clear about how you want your new warning to work
but given the example you provided:
class base {
virtual void foo() {}
};
class derived: public base {
[non_overriden] base::foo; //will warn when called
};
I have to ask if
class derived: public base {
[[deprecated("Warn when called")]] void foo() { base::foo(); }
};
does what you want?
Received on 2022-03-21 09:23:14