Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-03-24 12:29:00


Author: danieljames
Date: 2008-03-24 12:28:59 EDT (Mon, 24 Mar 2008)
New Revision: 43833
URL: http://svn.boost.org/trac/boost/changeset/43833

Log:
Explain why extending Boost.Hash is a good idea.

Text files modified:
   branches/unordered/trunk/libs/unordered/doc/hash_equality.qbk | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/doc/hash_equality.qbk
==============================================================================
--- branches/unordered/trunk/libs/unordered/doc/hash_equality.qbk (original)
+++ branches/unordered/trunk/libs/unordered/doc/hash_equality.qbk 2008-03-24 12:28:59 EDT (Mon, 24 Mar 2008)
@@ -48,8 +48,9 @@
 [import src_code/point1.cpp]
 [point_example1]
 
-Although, [link hash.custom extending boost::hash to support the type] is
-probably a better solution:
+Since the default hash function is [link hash Boost.Hash],
+we can [link hash.custom extend it to support the type]
+so that the hash function doesn't need to be explicitly given:
 
 [import src_code/point2.cpp]
 [point_example2]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk