libvital

Languages and libraries

c++ enum library

SHOW HN2022

38points
20comments
#1,125of 2,570 in 2022
Top 44%of 2022 by points

How HN took it

CuriousMostly questions and neutral comments

2 positive, 3 neutral or asking, 0 mixed, 1 critical, out of 6 comments about the project. Thread score +0.05.

Docs: 1 for, 1 againstIdea: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Ambitious feature set; wanted enum-to-string support

    From 1 comment
    • 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?
      shultays on HN

Objections

  • Documentation does not explain the problem or compare alternatives

    From 1 comment
    • 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…
      rsp1984 on HN

Requests

  • Range-based iteration over enum values

    From 1 comment
    • One other thing that have felt the need to solve was iteration through the values as if it was a container, i.e. using the range-based for loop.
      Koshkin on HN

Questions

  • How does it compare to magic_enum

    From 1 comment
    • 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…
      soylentgraham on HN

Alternatives named

  • magic_enum

    From 2 comments
    • 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…
      soylentgraham on HN
    • To my knowledge magic_enum has some severe limitations; for example, it limits the range of enum values, it cannot handle duplicate enum values, it uses compiler-specific hackes,…
      mehrdadn on HN
  • wise_enum

    From 1 comment
    • To my knowledge magic_enum has some severe limitations; for example, it limits the range of enum values, it cannot handle duplicate enum values, it uses compiler-specific hackes,…
      mehrdadn on HN
  • meta_enum

    From 1 comment
    • Ah sorry about that, thanks for the feedback! I can try to answer these here (and hopefully update the documentation as well when I get the chance): - The problem is basically…
      mehrdadn on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/32236447)