mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
Fix comment in C.128 example (#1449)
This commit is contained in:
@@ -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()
|
||||
// ...
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user