Код: Выделить всё
#include
struct a {
enum LOCAL_A { A1, A2 };
};
enum class b { B1, B2 };
int foo(int input) { return input; }
int main(void) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/8357240/how-to-automatically-convert-strongly-typed-enum-into-int[/url]