Separate good example from bad

Fixes #1001
This commit is contained in:
Jonathan Wakely 2017-07-24 20:36:44 +01:00
parent 8249a49c69
commit 9c9d8d2dfc

View File

@ -6693,6 +6693,8 @@ Use `virtual` only when declaring a new virtual function. Use `override` only wh
// ...
};
##### Example, good
struct Better : B {
void f1(int) override; // error (caught): D::f1() hides B::f1()
void f2(int) const override;