fork download
  1. bool operator==(const DatabaseObject &r) const
  2. {
  3. logprintf("We are in == operator");
  4. if (mExtentSet == true and r.mExtentSet == true)
  5. {
  6. logprintf("both of em are set");
  7. if (mExtent == r.mExtent)
  8. return true;
  9. else
  10. return false;
  11. }
  12. return false;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:23: error: ‘DatabaseObject’ does not name a type
 bool operator==(const DatabaseObject &r) const
                       ^
prog.cpp:1:39: error: ISO C++ forbids declaration of ‘r’ with no type [-fpermissive]
 bool operator==(const DatabaseObject &r) const
                                       ^
prog.cpp:1:42: error: non-member function ‘bool operator==(const int&)’ cannot have cv-qualifier
 bool operator==(const DatabaseObject &r) const
                                          ^
prog.cpp:1:42: error: ‘bool operator==(const int&)’ must have an argument of class or enumerated type
stdout
Standard output is empty