fork(2) download
  1. enum class Foo
  2. {
  3. First = 0x01,
  4. Second = 0x02,
  5. Third = 0x04,
  6. };
  7.  
  8. int main()
  9. {
  10. Foo val = Foo::First | Foo::Second;
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:10:31: error: no match for 'operator|' in '(Foo)1 | (Foo)2'
stdout
Standard output is empty