Skip to content
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

Avoid static cast bypass for parenthesis expression in initializer list #306

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

JonathanFoo0523
Copy link
Collaborator

Fix a problem where expressions in parentheses within an initializer
list bypass being explicitly cast with static_cast, causing issues
when the expression is implicitly cast to a narrower type.

Fixes #301

@JonathanFoo0523 JonathanFoo0523 requested a review from afd July 19, 2024 00:14
Copy link
Member

@afd afd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@afd afd merged commit 30bab7f into mc-imperial:main Jul 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parenthesis expression bypass static_cast insertion in initializer list
2 participants