fork download
  1. class A {
  2.  
  3. };
  4.  
  5. A operator"" _i( unsigned long long int ) {
  6. return A();
  7. }
  8.  
  9. class B {
  10. public:
  11. B() {
  12.  
  13. }
  14.  
  15. B( int ) {
  16.  
  17. }
  18. };
  19.  
  20. B operator+( const B &, const A & ) {
  21. return B();
  22. }
  23.  
  24. int main() {
  25. B b = 12 + 12_i;
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty