# Neargye/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

Canonical: https://starboard.codevetter.com/explore/Neargye/magic_enum

[Back to Discover](https://starboard.codevetter.com/discover)

![Neargye](https://avatars.githubusercontent.com/u/7997966?v=4&s=40)

Neargye

# magic\_enum

[View on GitHub
](https://github.com/Neargye/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

c\-plus\-plus
c\-plus\-plus\-17
cplusplus
cplusplus\-17
cpp
cpp17
enum
enum\-to\-string
header\-only
metaprogramming
no\-dependencies
reflection
serialization
single\-file
string\-to\-enum


6\.3k stars

C\+\+

Updated 1d ago

Created Mar 30, 2019

## Star history

\+215 stars
3\.5% growth


## Detected tools

No detected tools yet\.

## Similar projects

[![skypjack](https://avatars.githubusercontent.com/u/1812216?v=4&s=24)

skypjack/ entt

Gaming meets modern C\+\+ \- a fast and reliable entity component system \(ECS\) and much more

C\+\+ 13k 61%](https://starboard.codevetter.com/explore/skypjack/entt)[![changkun](https://avatars.githubusercontent.com/u/5498964?v=4&s=24)

changkun/ modern\-cpp\-tutorial

📚 Modern C\+\+ Tutorial: C\+\+11 to C\+\+26 On the Fly \| https://changkun\.de/modern\-cpp/

C\+\+ 26k 63%](https://starboard.codevetter.com/explore/changkun/modern-cpp-tutorial)[![fmtlib](https://avatars.githubusercontent.com/u/7280830?v=4&s=24)

fmtlib/ fmt

A modern formatting library

C\+\+ 26k 63%](https://starboard.codevetter.com/explore/fmtlib/fmt)[![cppcheck\-opensource](https://avatars.githubusercontent.com/u/278097703?v=4&s=24)

cppcheck\-opensource/ cppcheck

static analysis of C/C\+\+ code

C\+\+ 6\.8k 60%](https://starboard.codevetter.com/explore/cppcheck-opensource/cppcheck)[![federico\-busato](https://avatars.githubusercontent.com/u/55920584?v=4&s=24)

federico\-busato/ Modern\-CPP\-Programming

Modern C\+\+ Programming Course \(C\+\+03/11/14/17/20/23/26\)

HTML 16k 60%](https://starboard.codevetter.com/explore/federico-busato/Modern-CPP-Programming)[![catchorg](https://avatars.githubusercontent.com/u/33321405?v=4&s=24)

catchorg/ Catch2

A modern, C\+\+\-native, test framework for unit\-tests, TDD and BDD \- using C\+\+14, C\+\+17 and later \(C\+\+11 support is in v2\.x branch, and C\+\+03 on the Catch1\.x branch\)

C\+\+ 22k 59%](https://starboard.codevetter.com/explore/catchorg/Catch2)[![libcpr](https://avatars.githubusercontent.com/u/55407394?v=4&s=24)

libcpr/ cpr

C\+\+ Requests: Curl for People, a spiritual port of Python Requests\.

C\+\+ 7\.5k 59%](https://starboard.codevetter.com/explore/libcpr/cpr)[![google](https://avatars.githubusercontent.com/u/1342004?v=4&s=24)

google/ flatbuffers

FlatBuffers: Memory Efficient Serialization Library

C\+\+ 27k 60%](https://starboard.codevetter.com/explore/google/flatbuffers)
