From 9c9d8d2dfced4d13e7aee0209d1665b77db0b818 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 24 Jul 2017 20:36:44 +0100 Subject: [PATCH] Separate good example from bad Fixes #1001 --- CppCoreGuidelines.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index bfeb941..dd03548 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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;