summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/ProtocolInitiation.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/ProtocolInitiation.h')
-rw-r--r--cpp/src/qpid/framing/ProtocolInitiation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/ProtocolInitiation.h b/cpp/src/qpid/framing/ProtocolInitiation.h
index 31c73eb124..43e32da4cf 100644
--- a/cpp/src/qpid/framing/ProtocolInitiation.h
+++ b/cpp/src/qpid/framing/ProtocolInitiation.h
@@ -45,8 +45,12 @@ public:
inline uint8_t getMajor() const { return version.getMajor(); }
inline uint8_t getMinor() const { return version.getMinor(); }
inline ProtocolVersion getVersion() const { return version; }
+ bool operator==(ProtocolVersion v) const { return v == getVersion(); }
};
+std::ostream& operator<<(std::ostream& o, const framing::ProtocolInitiation& pi);
+
+
}
}