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 (by Neargye)
tomlplusplus
Header-only TOML config file parser and serializer for C++17. (by marzer)
Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
- SaaSHub - Software Alternatives and Reviews
Magic Enum C++ | tomlplusplus | |
---|---|---|
44 | 23 | |
4,064 | 1,251 | |
- | - | |
0.0 | 0.0 | |
20 days ago | 13 days ago | |
C++ | C++ | |
MIT License | MIT License |
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.
Magic Enum C++
Posts with mentions or reviews of Magic Enum C++.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-08.
-
What C++ library do you wish existed but hasn’t been created yet?
I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum
-
Fully Permissive License C++ Logger For Embedded System
Also, a shoutout to Magic Enum: https://github.com/Neargye/magic_enum
-
enum_name (yet another enum to/from string conversion utility >=C++11)
What does this have to offer over magic_enum?
-
quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library
But it's a hack, and I prefer not to use hacks in production, because of their significant limitations:
-
Enums with methods
Why reinvent the wheel? magic_enum
-
Macro to write enum and converter from and to string
I strongly recommend that you instead use magic_enum::enum_cast
Magic Enum provides that.
-
New to Programming and Would Like a Code Review or Tips on Readability
While I can understand the sentiment behind that it makes for a poor solution because people seeing the enum will assume it's a valid entry. A better solution is to use something like magic enum for that case.
-
What are some cool modern libraries you enjoy using?
magic_enum by far. It has an extreme amount of black magic, and compiler specific stuff all abstracted away behind its extremely neat user interface.
-
what annoys you most while using c++?
magic_enum
tomlplusplus
Posts with mentions or reviews of tomlplusplus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-06.
-
how to handle config files in c++?
Unless you want to make your own config file parser as an exercise (which is a good idea) I'd recommend using toml++.
-
Cmake fetchContent not working in a docker container.
[ 11%] Creating directories for 'tomlplusplus-populate' [ 22%] Performing download step (git clone) for 'tomlplusplus-populate' Cloning into 'tomlplusplus-src'... fatal: unable to access 'https://github.com/marzer/tomlplusplus.git/': server certificate verification failed. CAfile: none CRLfile: none Cloning into 'tomlplusplus-src'... fatal: unable to access 'https://github.com/marzer/tomlplusplus.git/': server certificate verification failed. CAfile: none CRLfile: none Cloning into 'tomlplusplus-src'... fatal: unable to access 'https://github.com/marzer/tomlplusplus.git/': server certificate verification failed. CAfile: none CRLfile: none -- Had to git clone more than once: 3 times. CMake Error at tomlplusplus-subbuild/tomlplusplus-populate-prefix/tmp/tomlplusplus-populate-gitclone.cmake:31 (message): Failed to clone repository: 'https://github.com/marzer/tomlplusplus.git' gmake[2]: *** [CMakeFiles/tomlplusplus-populate.dir/build.make:102: tomlplusplus-populate-prefix/src/tomlplusplus-populate-stamp/tomlplusplus-populate-download] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/tomlplusplus-populate.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2 CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message): Build step for tomlplusplus failed: 2 Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate) /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language) /usr/share/cmake-3.22/Modules/FetchContent.cmake:1259 (FetchContent_Populate) src/CMakeLists.txt:15 (FetchContent_MakeAvailable) -- Configuring incomplete, errors occurred!
It's a public repo - this one: https://github.com/marzer/tomlplusplus but thank you
-
Poxy - a Doxygen frontend - v0.9.0 released
For a live demo, see the toml++ homepage: https://marzer.github.io/tomlplusplus/
-
toml++ v3.2.0 released
Full changelog here.
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
toml++ v3.1.0 released
Full changelog here.
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
What are some alternatives?
When comparing Magic Enum C++ and tomlplusplus you can also consider the following projects:
toml11 - TOML for Modern C++
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
Protobuf - Protocol Buffers - Google's data interchange format
cereal - A C++11 library for serialization
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
Boost.Serialization - Boost.org serialization module
pfr - std::tuple like methods for user defined types without any macro or boilerplate code
rttr - C++ Reflection Library
wise_enum - A reflective enum implementation for C++
Bitsery - Your binary serialization library
protozero - Minimalist protocol buffer decoder and encoder in C++
cppbor - An implementation of cbor using C++ 17 variants