Our great sponsors
-
reflect-cpp
A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
milewski-ctfp-pdf
Bartosz Milewski's 'Category Theory for Programmers' unofficial PDF and LaTeX source
https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_events.h
Category Theory for Programmers by Bartosz Milewski (https://github.com/hmemcpy/milewski-ctfp-pdf/releases)
Have a look at how magic_enum does it. They found a trick to cover a very wide range of enum values. I actually initially developed the trick to get the enum names via __PRETTY_FUNCTION__ (https://github.com/KonanM/static_enum) and magic enum found a way to iterate possible values more efficiently.