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

cppcoreguidelines-pro-type-member-init #349

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

elshize
Copy link
Member

@elshize elshize commented Mar 25, 2020

@elshize elshize added this to the v1.0 milestone Mar 25, 2020
@elshize elshize requested a review from amallia March 25, 2020 19:30
@elshize elshize self-assigned this Mar 25, 2020
@amallia amallia merged commit 16a9c33 into master Mar 26, 2020
@amallia amallia deleted the cppcoreguidelines-pro-type-member-init branch March 26, 2020 17:50
@amallia
Copy link
Member

amallia commented Mar 27, 2020 via email

@elshize
Copy link
Member Author

elshize commented Mar 27, 2020

I believe it's not initialized because it's enum so it acts like an integer, and primitives are not initialized by default. So to be more precise, {} doesn't really call default constructor but rather is an aggregate initializer whose rules are just complicated.

But the bottom line is that clang-tidy complained about it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants