mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix comment in C.128 example (#1449)
This commit is contained in:
parent
4b414458cf
commit
d456ccf274
|
@ -6998,9 +6998,9 @@ If a base class destructor is declared `virtual`, one should avoid declaring der
|
|||
##### Example, good
|
||||
|
||||
struct Better : B {
|
||||
void f1(int) override; // error (caught): D::f1() hides B::f1()
|
||||
void f1(int) override; // error (caught): Better::f1() hides B::f1()
|
||||
void f2(int) const override;
|
||||
void f3(double) override; // error (caught): D::f3() hides B::f3()
|
||||
void f3(double) override; // error (caught): Better::f3() hides B::f3()
|
||||
// ...
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user