-
Notifications
You must be signed in to change notification settings - Fork 967
Simplify example and update C2556 error reference #5475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Simplify example and update C2556 error reference #5475
Conversation
@Rageking8 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
Learn Build status updates of commit c79bf08: ✅ Validation status: passed
For more details, please refer to the build report. |
PRMerger Results
|
@@ -71,7 +71,7 @@ The articles in this section of the documentation explain a subset of the error | |||
|[Compiler error C2553](compiler-error-C2553.md)|'*type* *derived_class*::*function*': overriding virtual function return type differs from '*type* *base_class*::*function*'| | |||
|Compiler error C2554|'*variable*': 'constinit' only allowed on a variable declaration with static or thread storage duration| | |||
|[Compiler error C2555](compiler-error-C2555.md)|'*derived_class*::*function*': overriding virtual function return type differs and is not covariant from '*base_class*::*function*'| | |||
|[Compiler error C2556](compiler-error-C2556.md)|'*type1* *class*::*function*': overloaded function differs only by return type from '*type2* *class*::*function*'| | |||
|[Compiler error C2556](compiler-error-C2556.md)|'*function1*': overloaded function differs only by return type from '*function2*'| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "class" part is removed as C2556 applies to both free and member functions.
Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
The enclosing class
C
in the example is removed as it's superfluous.