From 3d578cd60975e8d0f49826d07515c6e61f8d0c1b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 5 Aug 2013 16:35:13 +0000 Subject: 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 --- qpid/cpp/include/qpid/types/Uuid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qpid/cpp/include') 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. **/ -- cgit v1.2.1