Hacker News new | ask | show | jobs
by dakka1 720 days ago
If you're using C++20 or above, you could try conjure_enum (https://github.com/fix8mt/conjure_enum) It's based on magic_enum but optimized for C++20. Not sure about compile times although in our testing and with our test users it hasn't been reported as an issue.

Yes, there is magic_enum already - and we based this implementation on the core of magic_enum, but refocused for C++20, using some of the key features of this language version such constexpr algorithms, std::source_location and concepts; we also improved on and expanded the API.

1 comments

I'm trying it, and this library doesn't work on clang 14. Do you have any insight as to why?
Not supported. Minimum 15. See "8. Compiler support"