Skip to content
⌘K

magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code.

health 67contrib 656.3k

Overview & architecture

C++ standard
C++17
Build systems
–
License
MIT
Languages
C++
Last release
v0.9.8 · May 3, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
6.3k▲ 41
Merged PRs (30d)
latest
3▲ 3
Contributors (90d)
latest
4▲ 3
Issue first response p50
–
No snapshots yet.
2 open issues1 open PRs73 commits (30d)

Recent notable activity

  • Release
    magic_enum v0.9.8

    Release v0.9.8 Add ADL way of defining enum_range ( Add prefix trimming (#414) Add support fmt and std::format in C++20 module (#394) Add rules_cc bazel dependency (#438) Add custom separator symbol for enum_flags_cast from string ( Fix empty string and static_str string_view conversion ( Fix CWG1766 ( Fix std::format…

    Neargyev0.9.8
  • Release
    magic_enum v0.9.7

    Release v0.9.7 [breaking changes] Need to use #include instead of #include Fix installing via CMake (#374) Fix install headers and pkg-config file via Meson (#383) Fix bitset constructor (#367) Fix parameterize formatter::format (#365) Fix enum_fuse shift value calculation (#386) (#387)

    Neargyev0.9.7
  • Release
    magic_enum v0.9.6

    Release v0.9.6 Support C++20 module. ( ( Сhecking that the enum is valid (not empty and not forward declaration) ( ( Add enum_reflected ( Add support for overriding MAGIC_ENUM_ASSERT ( Add better support for Yocto/PetaLinux ( Fix -wshadow (

    Neargyev0.9.6
  • Release
    magic_enum v0.9.5

    Release v0.9.5 [hotfix] Fix bazel ( ( ( ( Fix UB (

    Neargyev0.9.5
  • Release
    magic_enum v0.9.4

    Release v0.9.4 Put headers in include/magic_enum directory Minor fixes and improvements

    Neargyev0.9.4
  • Release
    magic_enum v0.9.3

    Release v0.9.3 [hotfix] Fix enum type name in namespace/class ( Add enum_next_value and enum_prev_value in ( Move enum_for_each to Add Add option MAGIC_ENUM_NO_ASSERT Add option MAGIC_ENUM_NO_EXCEPTION Add option MAGIC_ENUM_ENABLE_HASH_SWITCH Fix error with _ITERATOR_DEBUG_LEVEL on msvc

    Neargyev0.9.3
  • Release
    magic_enum v0.9.2

    Release v0.9.2 [hotfix] Fix missing enum name in an anonymous namespace on Clang ( [hotfix] Re-Fix compiling on >= Clang-16 ( [hotfix] Fix missing enum name on Visual Studio 2017 ( Add enum_flags_test and enum_flags_test_any functions for flags Move all enum_flags_* to

    Neargyev0.9.2
  • Release
    magic_enum v0.9.1

    Release v0.9.1 [hotfix] fix enum name in namespace/class ( enable wchar_t as string_view value_type (

    Neargyev0.9.1
  • Release
    magic_enum v0.9.0

    Release v0.9.0 [breaking changes] Remove auto detect enum_range::is_flags. Need to explicitly set enum_range::is_flags, or add define MAGIC_ENUM_AUTO_IS_FLAGS for old behavior. Move iostream_operators to magic_enum_iostream.hpp Remove MAGIC_ENUM_ENABLE_NONASCII. Now it works by default. Add support big range in…

    Neargyev0.9.0
  • Release
    magic_enum v0.8.2

    Release v0.8.2 Compile-time optimization ( Add option MAGIC_ENUM_ENABLE_HASH to generate a hash switch, this need more memory and compile-time but functions like 'enum_name', 'enum_switch', etc will have O(1) complexity Add a separate header for enum_switch Add support no default value enum_switch ( Fix build…

    Neargyev0.8.2

Maintainers & organizations

every claim links to its source

Maintainers

No maintainers recorded yet.

Top contributors

Releases & changelog

  • magic_enum v0.9.8

    Release v0.9.8 Add ADL way of defining enum_range ( Add prefix trimming (#414) Add support fmt and std::format in C++20 module (#394) Add rules_cc bazel dependency (#438) Add custom separator symbol for enum_flags_cast from string ( Fix empty string and static_str string_view conversion ( Fix CWG1766 ( Fix std::format…

  • magic_enum v0.9.7

    Release v0.9.7 [breaking changes] Need to use #include instead of #include Fix installing via CMake (#374) Fix install headers and pkg-config file via Meson (#383) Fix bitset constructor (#367) Fix parameterize formatter::format (#365) Fix enum_fuse shift value calculation (#386) (#387)

  • magic_enum v0.9.6

    Release v0.9.6 Support C++20 module. ( ( Сhecking that the enum is valid (not empty and not forward declaration) ( ( Add enum_reflected ( Add support for overriding MAGIC_ENUM_ASSERT ( Add better support for Yocto/PetaLinux ( Fix -wshadow (

  • magic_enum v0.9.5

    Release v0.9.5 [hotfix] Fix bazel ( ( ( ( Fix UB (

  • magic_enum v0.9.4

    Release v0.9.4 Put headers in include/magic_enum directory Minor fixes and improvements

  • magic_enum v0.9.3

    Release v0.9.3 [hotfix] Fix enum type name in namespace/class ( Add enum_next_value and enum_prev_value in ( Move enum_for_each to Add Add option MAGIC_ENUM_NO_ASSERT Add option MAGIC_ENUM_NO_EXCEPTION Add option MAGIC_ENUM_ENABLE_HASH_SWITCH Fix error with _ITERATOR_DEBUG_LEVEL on msvc

  • magic_enum v0.9.2

    Release v0.9.2 [hotfix] Fix missing enum name in an anonymous namespace on Clang ( [hotfix] Re-Fix compiling on >= Clang-16 ( [hotfix] Fix missing enum name on Visual Studio 2017 ( Add enum_flags_test and enum_flags_test_any functions for flags Move all enum_flags_* to

  • magic_enum v0.9.1

    Release v0.9.1 [hotfix] fix enum name in namespace/class ( enable wchar_t as string_view value_type (

  • magic_enum v0.9.0major

    Release v0.9.0 [breaking changes] Remove auto detect enum_range::is_flags. Need to explicitly set enum_range::is_flags, or add define MAGIC_ENUM_AUTO_IS_FLAGS for old behavior. Move iostream_operators to magic_enum_iostream.hpp Remove MAGIC_ENUM_ENABLE_NONASCII. Now it works by default. Add support big range in…

  • magic_enum v0.8.2

    Release v0.8.2 Compile-time optimization ( Add option MAGIC_ENUM_ENABLE_HASH to generate a hash switch, this need more memory and compile-time but functions like 'enum_name', 'enum_switch', etc will have O(1) complexity Add a separate header for enum_switch Add support no default value enum_switch ( Fix build…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 67Contribution friendliness 65computed 19h ago
  • Activity0.73
    3 merged PRs in 30 days (full marks at 20); 72 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for entry points; weights renormalized]contrib
  • Maintainer responsiveness1.00
    median PR merge time 14 h (full marks within 72 h, zero after 60 days) [health score: no data for backlog pressure; weights renormalized] [contrib score: no data for entry points; weights renormalized]healthcontrib
  • Release cadence0.54
    last release 203 days ago (full marks within 90, zero after 730); 1 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.37
    4 unique contributors in 90 days (full marks at 25); top contributor has 92% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.