mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00

- Adds 'std=c++11' compiler flags - Replaces boost::type_traits with std::type_traits - Replaces boost::shared_ptr with std::shared_ptr - Replaces std::auto_ptr with std::unique_ptr - Replaces raw pointers with std::unique_ptr in ptr_vector, ptr_stack, and SettingChanges - Replaces boost::noncopyable with deleted copy and assignment operators - Replaces boost::next with std::next - Replaces boost::enable_if with std::enable_if - Replaces boost::is_convertible with std::is_convertible - Replaces ptrdiff_t with std::ptrdiff_t - Replaces boost::iterator_facade and boost::iterator_adaptor with std::iterator, borrowing the 'proxy reference' technique from boost - Removes Boost dependency from CMakeLists - Formats changed files using clang-format
30 lines
831 B
C++
30 lines
831 B
C++
#ifndef VALUE_PTR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
|
#define VALUE_PTR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
|
|
|
#if defined(_MSC_VER) || \
|
|
(defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
|
|
(__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "yaml-cpp/dll.h"
|
|
#include <memory>
|
|
|
|
namespace YAML {
|
|
namespace detail {
|
|
class node;
|
|
class node_ref;
|
|
class node_data;
|
|
class memory;
|
|
class memory_holder;
|
|
|
|
typedef std::shared_ptr<node> shared_node;
|
|
typedef std::shared_ptr<node_ref> shared_node_ref;
|
|
typedef std::shared_ptr<node_data> shared_node_data;
|
|
typedef std::shared_ptr<memory_holder> shared_memory_holder;
|
|
typedef std::shared_ptr<memory> shared_memory;
|
|
}
|
|
}
|
|
|
|
#endif // VALUE_PTR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|