Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. #pragma once
  3. namespace eight {
  4. //------------------------------------------------------------------------------
  5.  
  6. class NonCopyable
  7. {
  8. public:
  9.     NonCopyable(){}
  10. private:
  11.     NonCopyable( const NonCopyable& );
  12.     NonCopyable& operator=( const NonCopyable& );
  13. };
  14.  
  15. class NoCreate
  16. {
  17. private:
  18.     NoCreate(){}
  19.     NoCreate( const NoCreate& );
  20.     NoCreate& operator=( const NoCreate& );
  21. };
  22.  
  23. //------------------------------------------------------------------------------
  24. } // namespace eight
  25. //------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement