diff options
| author | Alan Conway <aconway@apache.org> | 2013-08-05 16:35:13 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-08-05 16:35:13 +0000 |
| commit | 3d578cd60975e8d0f49826d07515c6e61f8d0c1b (patch) | |
| tree | dde255fecc165b83ba17995c8b0e915ec8b92ae6 /qpid/cpp/include | |
| parent | 9a11ca003aeb5a86a580f9ae87cd99e1cf2800d3 (diff) | |
| download | qpid-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.h | 3 |
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. **/ |
