noncopyable.h 499 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2017, Tencent Inc.
  2. // All rights reserved.
  3. //
  4. // Author: sevenyou <sevenyou@tencent.com>
  5. // Created: 08/03/17
  6. // Description:
  7. #ifndef NONCOPYABLE_H
  8. #define NONCOPYABLE_H
  9. #pragma once
  10. namespace qcloud_cos {
  11. class NonCopyable {
  12. protected:
  13. NonCopyable() {}
  14. ~NonCopyable() {}
  15. private: // emphasize the following members are private
  16. NonCopyable(const NonCopyable&);
  17. const NonCopyable& operator=(const NonCopyable&);
  18. };
  19. } // namespace qcloud_cos
  20. #endif // NONCOPYABLE_H