enum_traits
Type traits for properties of C / C++ enum types (by willwray)
enum_reflect
A demo repo for enum_traits (by willwray)
enum_traits | enum_reflect | |
---|---|---|
2 | 1 | |
18 | 7 | |
- | - | |
10.0 | 10.0 | |
almost 5 years ago | almost 5 years ago | |
C++ | C++ | |
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.
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
enum_reflect
Posts with mentions or reviews of enum_reflect.
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
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 enum_traits and enum_reflect you can also consider the following projects:
wise_enum - A reflective enum implementation for C++
Better Enums - C++ compile-time enum to string, iteration, in a single header file
enum_name - Converting (scoped)enum values to string names written in C++>=11.
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