Wise Enum: A C++ Smart Enum For All Your Reflective Enum Needs
summary
A tiny C++ library called Wise Enum claims to give real enums to-string/from-string with std::optional, iteration via wise_enum::range, and compile-time behavior by using constexpr for C++14+. It generates an actual enum plus helper functions found by ADL, supports enum and enum class, explicit values and storage, namespace or class scope, adapts third-party enums, and emits a switch-based to-string for efficient code. Source and slides live on the CppCon 2018 GitHub.
AI-written summary · about








