NonCopyable.hpp 443 B

12345678910111213141516171819202122
  1. /************************************
  2. ************************************/
  3. #ifndef LIMONP_NONCOPYABLE_H
  4. #define LIMONP_NONCOPYABLE_H
  5. #include <iostream>
  6. #include <string>
  7. namespace Limonp
  8. {
  9. class NonCopyable
  10. {
  11. protected:
  12. NonCopyable(){};
  13. ~NonCopyable(){};
  14. private:
  15. NonCopyable(const NonCopyable& );
  16. const NonCopyable& operator=(const NonCopyable& );
  17. };
  18. }
  19. #endif