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
In C++ Insights - Episode 1: The invisible things there is an example:
struct A {}; struct B { explicit operator A() { return {}; } }; void DangerousFunc(const A&) {} int main() { DangerousFunc(static_cast<A>(B{})); }
The transformation that C++ Insights shows leads to:
DangerousFunc(static_cast<A>(static_cast<A>(B{}.operator A())));
which is incorrect. The first static_cast<A> is missing const.
static_cast<A>
const
It was initially reported by @peterkochlarsen and @DanielKhoshnoud.
The text was updated successfully, but these errors were encountered:
bea5681
Merge pull request #314 from andreasfertig/fixIssue313
c85cfe0
Fixed #313: Show `CK_NoOp` correctly.
No branches or pull requests
In C++ Insights - Episode 1: The invisible things there is an example:
The transformation that C++ Insights shows leads to:
which is incorrect. The first
static_cast<A>
is missingconst
.It was initially reported by @peterkochlarsen and @DanielKhoshnoud.
The text was updated successfully, but these errors were encountered: