diff options
Diffstat (limited to 'cpp/src/qpid/cluster/Cpg.h')
-rw-r--r-- | cpp/src/qpid/cluster/Cpg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Cpg.h b/cpp/src/qpid/cluster/Cpg.h index d616be74e2..351b65d56a 100644 --- a/cpp/src/qpid/cluster/Cpg.h +++ b/cpp/src/qpid/cluster/Cpg.h @@ -170,9 +170,14 @@ class Cpg : public Dispatchable { Handler& handler; }; +std::ostream& operator <<(std::ostream& out, const cpg_name& name); std::ostream& operator <<(std::ostream& out, const Cpg::Id& id); std::ostream& operator <<(std::ostream& out, const std::pair<cpg_address*,int> addresses); +inline bool operator==(const cpg_name& a, const cpg_name& b) { + return a.length==b.length && strncmp(a.value, b.value, a.length) == 0; +} +inline bool operator!=(const cpg_name& a, const cpg_name& b) { return !(a == b); } }} // namespace qpid::cluster |