mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Removed the (unimplemented) operator <, and added operator == (in place of is()) for nodes
This commit is contained in:
@@ -233,17 +233,8 @@ namespace YAML
|
|||||||
}
|
}
|
||||||
|
|
||||||
// free functions
|
// free functions
|
||||||
inline int compare(const Node& lhs, const Node& rhs)
|
|
||||||
{
|
inline bool operator==(const Node& lhs, const Node& rhs)
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool operator<(const Node& lhs, const Node& rhs)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool is(const Node& lhs, const Node& rhs)
|
|
||||||
{
|
{
|
||||||
return lhs.is(rhs);
|
return lhs.is(rhs);
|
||||||
}
|
}
|
||||||
|
@@ -83,11 +83,8 @@ namespace YAML
|
|||||||
detail::shared_memory_holder m_pMemory;
|
detail::shared_memory_holder m_pMemory;
|
||||||
detail::node *m_pNode;
|
detail::node *m_pNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
int compare(const Node& lhs, const Node& rhs);
|
bool operator==(const Node& lhs, const Node& rhs);
|
||||||
bool operator<(const Node& lhs, const Node& rhs);
|
|
||||||
|
|
||||||
bool is(const Node& lhs, const Node& rhs);
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct convert;
|
struct convert;
|
||||||
|
Reference in New Issue
Block a user