fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Foo {
  5. inline friend bool operator==(const Foo& f1, const Foo& f2) {
  6. return true;
  7. }
  8. };
  9.  
  10. int main(void) {
  11. Foo f1, f2;
  12. cout << operator==(f1, f2);
  13. return 0;
  14. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1