ptr.h 831 B

1234567891011121314151617181920212223242526272829
  1. #ifndef VALUE_PTR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  2. #define VALUE_PTR_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. #include <memory>
  10. namespace YAML {
  11. namespace detail {
  12. class node;
  13. class node_ref;
  14. class node_data;
  15. class memory;
  16. class memory_holder;
  17. using shared_node = std::shared_ptr<node>;
  18. using shared_node_ref = std::shared_ptr<node_ref>;
  19. using shared_node_data = std::shared_ptr<node_data>;
  20. using shared_memory_holder = std::shared_ptr<memory_holder>;
  21. using shared_memory = std::shared_ptr<memory>;
  22. }
  23. }
  24. #endif // VALUE_PTR_H_62B23520_7C8E_11DE_8A39_0800200C9A66