fork download
  1. #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
  2.   TypeName(const TypeName&); \
  3.   void operator=(const TypeName&)
  4.  
  5. class MyClass {
  6. //...
  7. DISALLOW_COPY_AND_ASSIGN(MyClass);
  8. };
  9.  
  10. #undef DISALLOW_COPY_AND_ASSIGN
  11.  
  12. int main() {
  13. return 0;
  14. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty