We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the object is not polymorphic, then dynamic_cast cannot replace static_cast. This should be explicitly mentioned in the rule.
The text was updated successfully, but these errors were encountered:
Bjarne will add wording to cover this. Part of the answer is that if it's not polymorphic you shouldn't be using static_cast either.
static_cast
Sorry, something went wrong.
added an example and explanation
BjarneStroustrup
No branches or pull requests
If the object is not polymorphic, then dynamic_cast cannot replace static_cast. This should be explicitly mentioned in the rule.
The text was updated successfully, but these errors were encountered: