Skip to content

Add constexpr to argument value constructors#4659

Merged
vitaut merged 1 commit intofmtlib:masterfrom
elbeno:constexpr-value-constructors
Jan 22, 2026
Merged

Add constexpr to argument value constructors#4659
vitaut merged 1 commit intofmtlib:masterfrom
elbeno:constexpr-value-constructors

Conversation

@elbeno
Copy link
Copy Markdown
Contributor

@elbeno elbeno commented Jan 22, 2026

I'm having issues with using libfmt at compile time which come down to some value constructors not being marked constexpr. I think constexpr is the right qualifier to use here rather than FMT_CONSTEXPR?

@vitaut vitaut merged commit f09185d into fmtlib:master Jan 22, 2026
41 checks passed
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Jan 22, 2026

Thank you! constexpr is indeed preferred if it's compatible with C++11.

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