Skip to content

Remove redundant inline#66

Open
ColinH wants to merge 2 commits intoOneLoneCoder:mainfrom
ColinH:main
Open

Remove redundant inline#66
ColinH wants to merge 2 commits intoOneLoneCoder:mainfrom
ColinH:main

Conversation

@ColinH
Copy link

@ColinH ColinH commented Feb 9, 2024

Functions that are constexpr and/or defined (i.e. implemented) inside of a class definition (also struct/union) and/or templates do not need to be declared inline because that's implicit/automatic.

...and the two global double variables can be declared constexpr.

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.

1 participant