I have this enum class in c++:
enum class type1 {
A =10, B, C
};
and this switch statement:
switch (x) {
case 'A': case 'B': case 'C':
{
v.push_back(int(type1(t[i])));
break;
}
}
(v) is a vector of (ints) and (t) is a vector of (chars). I want to push the enum's (int) value into (v), but what I get is the (chars) value.