wise_enum
A reflective enum implementation for C++ (by quicknir)
enum_traits
Type traits for properties of C / C++ enum types (by willwray)
Our great sponsors
wise_enum | enum_traits | |
---|---|---|
2 | 2 | |
283 | 18 | |
- | - | |
0.0 | 10.0 | |
3 months ago | almost 5 years ago | |
C | C++ | |
Boost Software License 1.0 | GNU Lesser General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wise_enum
Posts with mentions or reviews of wise_enum.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-12.
-
Behind the magic of magic_enum
I can't keep up! First we have better enum, then some guy at a conference says we have to use wise enum instead, and now you speak of magic enum!
-
which concerns of the game dev industry does the committee NOT address ?
There are already several working, well-known and used hacks mechanisms available to reflect on enums. For example, magic enum, wise enum, Boost.Describe, and so on.
enum_traits
Posts with mentions or reviews of enum_traits.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-19.
-
enum_name (yet another enum to/from string conversion utility >=C++11)
On the topic of this kind of hackflection willwray/enum_traits uses an interesting trick where they improve buildtime performance by doing the __PRETTY_FUNCTION__/__FUNCSIG__/std::source_location::current().function_name() inside a variadic templated function to do the name conversion for a batch of integers at the same time to make it less expensive (compiletime) to test a large range of numbers.
-
Behind the magic of magic_enum
You could try https://github.com/willwray/enum_traits. Check out the demo repo https://github.com/willwray/enum_reflect
What are some alternatives?
When comparing wise_enum and enum_traits you can also consider the following projects:
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
Better Enums - C++ compile-time enum to string, iteration, in a single header file
blender-tools - 🐵 Embark Addon for Blender
enum_reflect - A demo repo for enum_traits
enum_name - Converting (scoped)enum values to string names written in C++>=11.
libCat - 🐈⬛ A runtime for C++26 w/out libC or POSIX. Smaller binaries, only arena allocators, SIMD, stronger type safety than STL, and value-based errors!
arewegameyet - The repository for https://arewegameyet.rs
vulkan-toy-engine - Multiplayer RTS lua driven engine