mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Added explicit conversion from an iterator value to a Node. This conversion was always allowed (since the iterator value is derived from Node, but since Node has a templated constructor, that would take precedence over the derived-to-base conversion. This didn't seem to be a problem in gcc or clang, but MSVC seems to have trouble. (new API)
This commit is contained in:
@@ -29,6 +29,10 @@ namespace YAML
|
|||||||
Assign(rhs);
|
Assign(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline Node::Node(const detail::iterator_value& rhs): m_pMemory(rhs.m_pMemory), m_pNode(rhs.m_pNode)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
inline Node::Node(const Node& rhs): m_pMemory(rhs.m_pMemory), m_pNode(rhs.m_pNode)
|
inline Node::Node(const Node& rhs): m_pMemory(rhs.m_pMemory), m_pNode(rhs.m_pNode)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -26,6 +26,7 @@ namespace YAML
|
|||||||
Node();
|
Node();
|
||||||
explicit Node(NodeType::value type);
|
explicit Node(NodeType::value type);
|
||||||
template<typename T> explicit Node(const T& rhs);
|
template<typename T> explicit Node(const T& rhs);
|
||||||
|
explicit Node(const detail::iterator_value& rhs);
|
||||||
Node(const Node& rhs);
|
Node(const Node& rhs);
|
||||||
~Node();
|
~Node();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user