fork download
  1. struct a {
  2. int operator+(char) {return 3;}
  3. };
  4.  
  5. int main() {
  6. a obj;
  7. decltype(obj+'z') result;
  8. result = obj + 'z';
  9. }
  10.  
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout
Standard output is empty