Skip to content

Make fmt::as_identifiers a struct instead of a variable - #4900

Open
avikivity wants to merge 1 commit into
fmtlib:mainfrom
avikivity:enum-marker-value
Open

Make fmt::as_identifiers a struct instead of a variable#4900
avikivity wants to merge 1 commit into
fmtlib:mainfrom
avikivity:enum-marker-value

Conversation

@avikivity

Copy link
Copy Markdown
Contributor

The annotation was a constant of an empty type, which left no room for options. Make the annotation type itself, fmt::as_identifiers, the thing users write, so it is now spelled

enum class [[=fmt::as_identifiers()]] color { red, green, blue };

and options can later be added as constructor arguments.

The annotation was a constant of an empty type, which left no room for
options. Make the annotation type itself, fmt::as_identifiers, the thing
users write, so it is now spelled

  enum class [[=fmt::as_identifiers()]] color { red, green, blue };

and options can later be added as constructor arguments.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@avikivity
avikivity requested a review from vitaut as a code owner August 26, 2026 09:53
@avikivity

Copy link
Copy Markdown
Contributor Author

Note: this logically conflicts with #4899. If you want both (and you should), merge one and I'll refresh the other.

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