From cf5695e32094203bc6792e062b1b00a3c5cee36a Mon Sep 17 00:00:00 2001 From: beder Date: Sun, 11 Sep 2011 22:56:04 -0500 Subject: [PATCH] Removed the (unimplemented) operator <, and added operator == (in place of is()) for nodes --- include/yaml-cpp/node/impl.h | 13 ++----------- include/yaml-cpp/node/node.h | 7 ++----- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/include/yaml-cpp/node/impl.h b/include/yaml-cpp/node/impl.h index 55fabb7..7cabd89 100644 --- a/include/yaml-cpp/node/impl.h +++ b/include/yaml-cpp/node/impl.h @@ -233,17 +233,8 @@ namespace YAML } // 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); } diff --git a/include/yaml-cpp/node/node.h b/include/yaml-cpp/node/node.h index e3a6baf..3e8f0c4 100644 --- a/include/yaml-cpp/node/node.h +++ b/include/yaml-cpp/node/node.h @@ -83,11 +83,8 @@ namespace YAML detail::shared_memory_holder m_pMemory; detail::node *m_pNode; }; - - int compare(const Node& lhs, const Node& rhs); - bool operator<(const Node& lhs, const Node& rhs); - - bool is(const Node& lhs, const Node& rhs); + + bool operator==(const Node& lhs, const Node& rhs); template struct convert;