fork(2) download
  1. #include <type_traits>
  2.  
  3. enum class E {
  4. //enum E {
  5. E1, E2, E3, MaxNum
  6. };
  7.  
  8. const char * ENames[ static_cast< typename std::underlying_type< E >::type >( E::MaxNum ) ] = {
  9. "E1", "E2", "E3"
  10. };
  11.  
  12. int main() {
  13.  
  14. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty