C++ Enumerations are widely used but there is no option at the language level or a utility in the standard library to make it possible. A possible approach is to write a function such as this to convert the values to strings. The solution is explained in the article Converting C++ enums to strings by Marcos Cardoso.
Sort: