Skip to content

Remove some redundant consts and inlines - #4445

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

vitaut merged 1 commit into
fmtlib: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

vitaut commented May 12, 2025

Copy link
Copy Markdown
Contributor

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

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

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
@vitaut

vitaut commented May 12, 2025

Copy link
Copy Markdown
Contributor

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