fork download
  1. #include <iostream>
  2.  
  3. struct A {
  4. operator int() {return 1;}
  5. operator double() {return 1.0;}
  6. };
  7.  
  8. int main() {
  9. A a;
  10. int i = a;
  11. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty