noncopyable.h 687 B

12345678910111213141516171819202122232425
  1. #ifndef NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  2. #define NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  3. #if defined(_MSC_VER) || \
  4. (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
  5. (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
  6. #pragma once
  7. #endif
  8. #include "yaml-cpp/dll.h"
  9. namespace YAML {
  10. // this is basically boost::noncopyable
  11. class YAML_CPP_API noncopyable {
  12. protected:
  13. noncopyable() {}
  14. ~noncopyable() {}
  15. private:
  16. noncopyable(const noncopyable&);
  17. const noncopyable& operator=(const noncopyable&);
  18. };
  19. }
  20. #endif // NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66