I've always wondered about the decision, why override and final has to be after member-function declarator:
struct Base {
virtual void virtFun();
};
struct Foo: Base {
virtual void virtFun() override;
};
For me, it would be more logical to put override/final in place of virtual:
struct Base {
virtual void virtFun();
};
struct Foo: Base {
override void virtFun();
};
Is there a reason behind this? Maybe some compatibility issue with pre C++11?