Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jan 9, 2026

Problem:

  • Formatting an enumeration value does not work when the enumeration value has no identifier. e.g.
enum struct E{};
constexpr auto s = stdx::enum_as_string<E{17}>(); // should be something like "(E)17"

Solution:

  • Allow enum_as_string to take account of "cast-style" compiler representation when enumeration values don't have identifiers.

Problem:
- Formatting an enumeration value does not work when the enumeration value has
  no identifier. e.g.

```cpp
enum struct E{};
constexpr auto s = stdx::enum_as_string<E{17}>(); // should be something like "(E)17"
```

Solution:
- Allow `enum_as_string` to take account of "cast-style" compiler representation
  when enumeration values don't have identifiers.
@elbeno elbeno force-pushed the fix-unidentified-enum-format branch from e34ae2b to bb3fcbf Compare January 9, 2026 16:21
@lukevalenty lukevalenty merged commit 616651d into intel:main Jan 9, 2026
90 of 96 checks passed
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