Skip to content

Conversation

@17steen
Copy link
Contributor

@17steen 17steen commented Oct 27, 2025

file.cpp:36:27: error: constexpr variable 'string_view' must be initialized by a constant expression
   36 |     constexpr static auto string_view = str.str();
      |                           ^             ~~~~~~~~~

This error goes away when annotating the member function with FMT_CONSTEXPR

@vitaut vitaut merged commit 27bf8b4 into fmtlib:master Oct 30, 2025
41 checks passed
@vitaut
Copy link
Contributor

vitaut commented Oct 30, 2025

Thank you!

@17steen 17steen deleted the bugfix/missing-constexpr-specification branch October 31, 2025 08:08
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.

3 participants