fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct One
  5. {
  6. bool operator==(const One &) { cout << "hello from One!" << endl; return true; }
  7. bool operator==(unsigned int) { cout << "hello from One!" << endl; return true; }
  8. };
  9. One operator "" x( unsigned long long int ) { return One{}; }
  10. One operator "" xMAGICK( unsigned long long int ) { return One{}; }
  11.  
  12. int main()
  13. {
  14. cout << (0xMAGICK == 0x);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
hello from One!
1