Skip to content

Fix for https://github.com/jcbhmr/platformdirs-cpp/issues/1.#2

Merged
TrophyNinjaShrub merged 1 commit into
jcbhmr:mainfrom
TrophyNinjaShrub:jbt/constexpr-copies
Jun 1, 2026
Merged

Fix for https://github.com/jcbhmr/platformdirs-cpp/issues/1.#2
TrophyNinjaShrub merged 1 commit into
jcbhmr:mainfrom
TrophyNinjaShrub:jbt/constexpr-copies

Conversation

@TrophyNinjaShrub

Copy link
Copy Markdown
Collaborator

Simply removing the ampersand turns those variables into copies of the original data rather than references to it. The compiler then allows them to be implicitly inline due to 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