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 | 66caee2f05a166d96f13760c34a562c0f889bec2 (patch) | |
| tree | 5d9ab23158a7cb481012092205e65328c02dac47 /cpp/include/qpid | |
| parent | bdf10fe22c76c941c585de90ba55f549cadc217f (diff) | |
| download | qpid-python-66caee2f05a166d96f13760c34a562c0f889bec2.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/qpid@1510597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid')
| -rw-r--r-- | cpp/include/qpid/types/Uuid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/include/qpid/types/Uuid.h b/cpp/include/qpid/types/Uuid.h index b931670d97..eb9cf33693 100644 --- a/cpp/include/qpid/types/Uuid.h +++ b/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. **/ |
