You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/c26434.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,3 +25,21 @@ Introducing a function which has the same name as a non-virtual function in a ba
25
25
## See also
26
26
27
27
[C.128: Virtual functions should specify exactly one of virtual, override, or final](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md)
28
+
29
+
# Example
30
+
```
31
+
struct Base
32
+
{
33
+
virtual void foo() = 0;
34
+
};
35
+
36
+
struct Derived_1 : Base
37
+
{
38
+
virtual void foo() override {} // C26434, virtual is not needed here.
0 commit comments