Skip to content

Compile time string definitions in defines.h - #4021

Merged
jhale merged 4 commits into
mainfrom
schnellerhase/defines-consteval
Dec 16, 2025
Merged

Compile time string definitions in defines.h#4021
jhale merged 4 commits into
mainfrom
schnellerhase/defines-consteval

Conversation

@schnellerhase

Copy link
Copy Markdown
Contributor

Only strings were remaining to be compiled down explicitly, this changes to compile time versions for all properties.

@schnellerhase schnellerhase added the housekeeping Tidying and style improvements label Dec 15, 2025
@schnellerhase
schnellerhase marked this pull request as ready for review December 15, 2025 14:52
@jhale

jhale commented Dec 15, 2025

Copy link
Copy Markdown
Member

I'm feeling dejavu with this one... consteval std::string turned out to have some issues. Can't remember the details though.

@schnellerhase

Copy link
Copy Markdown
Contributor Author

Yes was previously discussed in #3246 - what I did not know back then is that a C-style string has "static storage duration". Which makes the std::string_view return safe.

@jhale
jhale added this pull request to the merge queue Dec 16, 2025
Merged via the queue into main with commit 0203952 Dec 16, 2025
18 of 19 checks passed
@jhale
jhale deleted the schnellerhase/defines-consteval branch December 16, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

housekeeping Tidying and style improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants