Skip to content

Commit 03bbe1b

Browse files
authored
Merge pull request #5118 from carsonRadtke/patch-1
improved description for C26435
2 parents 2323822 + 8d66e00 commit 03bbe1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/code-quality/c26435.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ helpviewer_keywords: ["C26435"]
77
---
88
# Warning C26435
99

10-
> Function '*symbol*' should specify exactly one of 'virtual', 'override', or 'final' (c.128)
10+
> The virtual function '*symbol*' should specify exactly one of 'virtual', 'override', or 'final' (c.128)
1111
1212
## C++ Core Guidelines
1313

@@ -41,6 +41,9 @@ public:
4141
void Draw() override final { // C26435, only 'final' is necessary.
4242
//...
4343
}
44+
virtual void DrawCircumference() final { // C26435, should be neither 'virtual' nor 'final'.
45+
//...
46+
}
4447
};
4548
```
4649

0 commit comments

Comments
 (0)