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

Redundant inline specifier on constexpr functions #3807

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

ldm5180
Copy link
Collaborator

@ldm5180 ldm5180 commented Oct 20, 2020

Problem:

  • constexpr functions are decorated with the inline specifier
    keyword. This is redundant because constexpr functions are
    implicitly inline.
  • [dcl.constexpr], §7.1.5/2 in the C++11 standard): "constexpr
    functions and constexpr constructors are implicitly inline (7.1.2)".

Solution:

  • Remove the redundant inline keyword.

Problem:
- `constexpr` functions are decorated with the `inline` specifier
  keyword. This is redundant because `constexpr` functions are
  implicitly `inline`.
- [dcl.constexpr], §7.1.5/2 in the C++11 standard): "constexpr
  functions and constexpr constructors are implicitly inline (7.1.2)".

Solution:
- Remove the redundant `inline` keyword.
@awesomekling awesomekling merged commit d1fe6a0 into SerenityOS:master Oct 20, 2020
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.

None yet

2 participants