Show HN: The Ultimate C++14 (and later) Enum Library

by mehrdadnon 7/26/22, 10:24 AMwith 20 comments
by rsp1984on 7/27/22, 9:37 AM

This is probably an amazing library, yet the documentation gives me no clue

* what the problem is that needs solving,

* how the lib solves it and how that's preferable over dealing with the problem another way,

* how it compares to other libs that solve the same problem.

Therefore my interest in using this for my own projects right now is unfortunately close to zero.

by soylentgrahamon 7/27/22, 8:28 AM

Any chance anyone knows how this compares to magic_enum (which iirc is c++17+ only? Though c++17 seems to be supported every platform i work on now)

No string -> enum would probably be a non-starter for me though

by shultayson 7/27/22, 9:43 AM

It is amazing how much effort is going to simplify adding "enum_to_string(e)" support in C++ or C. What is the reason this not being part of C++ standard?

by fitch321on 7/27/22, 1:35 PM

This is where homoiconicity really shines.