NonCopyAble.hpp 555 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __NONCOPYAPLE_HPP_
  2. #define __NONCOPYAPLE_HPP_
  3. #include <iostream>
  4. namespace gsd
  5. {
  6. /**
  7. * @brief NonCopyAble
  8. *
  9. */
  10. class NonCopyAble
  11. {
  12. protected:
  13. NonCopyAble(){}
  14. ~NonCopyAble(){}
  15. private:
  16. NonCopyAble(const NonCopyAble& thiz) = delete;
  17. NonCopyAble(NonCopyAble &&thiz) = delete;
  18. NonCopyAble& operator=(const NonCopyAble& thiz) = delete;
  19. NonCopyAble& operator=(NonCopyAble&& thiz) = delete;
  20. };
  21. } // namespace gsd
  22. #endif