#string enum
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
Hi, I want to have an enum that instead of it's members referring to int etc it refers to a const char*/std::string
Something like this:
enum class string_enum {
A = "A",
B = "B"
};
Do I have to use a struct or is there a better option?