/cpp-enum

Enumeration safe wrapper for legacy code

Primary LanguageC++MIT LicenseMIT

cpp-enum

Enumeration safe wrapper for legacy code

  • Enum serializable as a string.
  • Compiler to name of const as string.
  • Only allowed values
  • List of all values
  • Default value (ie. first)
  • Conversion between enum to string and back
  • Autodetection of length for char buffer?
  • Linked to a real enum
  • Linked to a map function
  • String is just one possible map
  • Allocate buffer?
  • Cmake- vs 2008 compatible, mac os also
  • All classical methods
    • Constructors
    • Assignment
    • Compare
    • Virtual destructor