Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
725 B

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 000
  5. *
  6. * File: cpputil.h
  7. *
  8. * Contents: Miscellaneous C++ utilities
  9. *
  10. * History: 29-Mar-2000 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #pragma once
  14. /*
  15. * add these to a class declaration if you don't want it to be copied
  16. * and/or assigned
  17. */
  18. #define DECLARE_NOT_COPIABLE( ClassName) private: ClassName (const ClassName&); // not implemented
  19. #define DECLARE_NOT_ASSIGNABLE(ClassName) private: ClassName& operator=(const ClassName&); // not implemented