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

STYLE: Prefer = default to explicitly trivial implementations #18

Conversation

jhlegarreta
Copy link
Member

This check replaces default bodies of special member functions with
= default;. The explicitly defaulted function declarations enable more
opportunities in optimization, because the compiler might treat
explicitly defaulted functions as trivial.

Additionally, the C++11 use of = default more clearly expresses the
intent for the special member functions.

Left behind in commits 7d47862 and 9160b83.

This check replaces default bodies of special member functions with
`= default;`. The explicitly defaulted function declarations enable more
opportunities in optimization, because the compiler might treat
explicitly defaulted functions as trivial.

Additionally, the C++11 use of `= default` more clearly expresses the
intent for the special member functions.

Left behind in commits 7d47862 and 9160b83.
@jhlegarreta jhlegarreta merged commit cd273f5 into InsightSoftwareConsortium:master Mar 25, 2019
@jhlegarreta jhlegarreta deleted the PreferDefaultToExplicitTrivialImplementations2 branch March 25, 2019 00:33
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.

2 participants