fork download
  1. typedef unsigned int flag;
  2.  
  3. enum stupid_idea : flag
  4. {
  5. optimize = 0,
  6. normal = 0,
  7. something = 1,
  8. };
  9.  
  10. // HOW DO I CALL THIS WITH optimize
  11. int x(const char *text, flag f = normal)
  12. {
  13. return 5;
  14. }
  15.  
  16. int x(const char *text, const char *text2, flag f = normal)
  17. {
  18. return 5;
  19. }
  20.  
  21. int main()
  22. {
  23. x("hello", optimize);
  24. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty