summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-08-05 16:35:13 +0000
committerAlan Conway <aconway@apache.org>2013-08-05 16:35:13 +0000
commit3d578cd60975e8d0f49826d07515c6e61f8d0c1b (patch)
treedde255fecc165b83ba17995c8b0e915ec8b92ae6 /qpid/cpp/include
parent9a11ca003aeb5a86a580f9ae87cd99e1cf2800d3 (diff)
downloadqpid-python-3d578cd60975e8d0f49826d07515c6e61f8d0c1b.tar.gz
NO-JIRA: Corrected use of boost_hash, failing to build on some compilers.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1510597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/types/Uuid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/types/Uuid.h b/qpid/cpp/include/qpid/types/Uuid.h
index b931670d97..eb9cf33693 100644
--- a/qpid/cpp/include/qpid/types/Uuid.h
+++ b/qpid/cpp/include/qpid/types/Uuid.h
@@ -82,6 +82,9 @@ class QPID_TYPES_CLASS_EXTERN Uuid
unsigned char bytes[16];
};
+/** Hash value function for use with boots::hash or std::hash */
+inline size_t hash_value(const Uuid& uuid) { return uuid.hash(); }
+
/** Returns true if the uuids are equal, false otherwise. **/
QPID_TYPES_EXTERN bool operator==(const Uuid&, const Uuid&);
/** Returns true if the uuids are NOT equal, false if they are. **/