Better HN
topnewbestaskshowjobs
Log inSign up

dakka1

1 karma · joined Jul 3, 2024 (2y ago) · 3 submissions

Submissions

1.

Show HN: Conjure_enum – a C++20 enum and typename reflection Library(github.com ↗)

2 points · by dakka1 · 2y ago · discuss

comment 2y ago · link · parent

Not supported. Minimum 15. See "8. Compiler support"

comment 2y ago · link · parent

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.