fork(1) download
  1. #include <iostream>
  2.  
  3. enum struct EnumType : unsigned int { SOME = 1, MORE = 6, HERE = 8 };
  4.  
  5. int main() {
  6. const unsigned int num = 1;
  7.  
  8. switch (static_cast<EnumType>(num)) {
  9. case EnumType::SOME:
  10. std::cout << "some" << std::endl;
  11. break;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
some