Hacker GitHub

← All repos

Neargye/magic_enum

View on GitHub ↗ ★ 6,250 C++

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

7 mentions on Hacker News by 5 people: 5 stories, 2 comments · first 2019-04-08 · latest 2026-06-04

Mentions per year 7 mentions · busiest year 2019 (3)
20082026
  1. ▲ 5
    Magic Enum C++: Header-only C++17 library provides static reflection for enums
    story by gjvc · 2026-06-04 · 0 comments
  2. ▲ 2
    Usable Magic Enums for C++
    story by HaoZeke · 2023-07-04 · 0 comments
  3. ▲ 2
    Show HN: Enum to_string, from_string, iterating for modern C++, without macro
    story by neargye · 2019-04-11 · 0 comments
  4. ▲ 4
    Static reflection for enums (to string, from string, iteration) for modern C++
    story by neargye · 2019-04-11 · 0 comments
  5. ▲ 3
    Show HN: Static reflection on enums for modern C++
    story by neargye · 2019-04-08 · 0 comments