Commit 9e62bf83 authored by Jesse Beder's avatar Jesse Beder
Browse files

Removed the (unimplemented) operator <, and added operator == (in place of is()) for nodes

parent f9d826c2
...@@ -233,17 +233,8 @@ namespace YAML ...@@ -233,17 +233,8 @@ namespace YAML
} }
// free functions // free functions
inline int compare(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) inline bool operator==(const Node& lhs, const Node& rhs)
{ {
return lhs.is(rhs); return lhs.is(rhs);
} }
......
...@@ -84,10 +84,7 @@ namespace YAML ...@@ -84,10 +84,7 @@ namespace YAML
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment