enum_name (yet another enum to/from string conversion utility >=C++11)

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • enum_name

    Converting (scoped)enum values to string names written in C++>=11.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • enum_traits

    Type traits for properties of C / C++ enum types

    On the topic of this kind of hackflection willwray/enum_traits uses an interesting trick where they improve buildtime performance by doing the __PRETTY_FUNCTION__/__FUNCSIG__/std::source_location::current().function_name() inside a variadic templated function to do the name conversion for a batch of integers at the same time to make it less expensive (compiletime) to test a large range of numbers.

  • glaze

    Extremely fast, in memory, JSON and interface library for modern C++

    I ended up adopting this approach in some test code https://godbolt.org/z/GKW8Preva when I was thinking about adding automatic enum serialization/deserialization to stephenberry/glaze. But there are too many limitations.

  • Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

    What does this have to offer over magic_enum?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • what is the best API for serialization?

    3 projects | /r/cpp | 13 Feb 2023
  • What C++ library do you wish existed but hasn’t been created yet?

    18 projects | /r/cpp | 8 Jul 2023
  • Behind the magic of magic_enum

    4 projects | /r/cpp | 12 Feb 2023
  • quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library

    3 projects | /r/cpp | 6 Feb 2023
  • alpaca: A new serialization library written in C++17 - Pack C++ structs into a compact byte-array without any macros or boilerplate

    5 projects | /r/cpp | 8 Sep 2022

Did you konow that C++ is
the 6th most popular programming language
based on number of metions?