Commit cf5695e3 authored by beder's avatar beder
Browse files

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

parent 30ce2821
...@@ -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)
{ 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 ...@@ -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;
......
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