Skip to content

Remove some redundant consts and inlines#4445

Merged
vitaut merged 1 commit intofmtlib:masterfrom
localspook:redundant-const-and-inline
May 12, 2025
Merged

Remove some redundant consts and inlines#4445
vitaut merged 1 commit intofmtlib:masterfrom
localspook:redundant-const-and-inline

Conversation

@localspook
Copy link
Copy Markdown
Contributor

constexpr variables are implicitly const, and member functions defined within their class definition are implicitly inline.

@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented May 12, 2025

Thanks for the PR. inline is not redundant with modules: #4169, so that part needs to be reverted.

Copy link
Copy Markdown
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

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

Please revert the inline changes.

`constexpr` variables are implicitly `const`.
@localspook localspook force-pushed the redundant-const-and-inline branch from 3486a43 to 85f285a Compare May 12, 2025 14:12
@localspook
Copy link
Copy Markdown
Contributor Author

Wow, I was unaware of the module changes. I've read up on them now.

Sorry for the delay, and sorry for the force-push; I couldn't wrangle git into reverting those lines in a new commit.

@vitaut vitaut merged commit b5266fd into fmtlib:master May 12, 2025
45 checks passed
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented May 12, 2025

Thank you!

@localspook localspook deleted the redundant-const-and-inline branch May 12, 2025 19:20
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