Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54556 - sandbox/cloneable/boost/cloneable
From: christian.schladetsch_at_[hidden]
Date: 2009-06-30 20:57:16


Author: cschladetsch
Date: 2009-06-30 20:57:16 EDT (Tue, 30 Jun 2009)
New Revision: 54556
URL: http://svn.boost.org/trac/boost/changeset/54556

Log:
added more tests

Text files modified:
   sandbox/cloneable/boost/cloneable/abstract_base.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/cloneable/boost/cloneable/abstract_base.hpp
==============================================================================
--- sandbox/cloneable/boost/cloneable/abstract_base.hpp (original)
+++ sandbox/cloneable/boost/cloneable/abstract_base.hpp 2009-06-30 20:57:16 EDT (Tue, 30 Jun 2009)
@@ -122,12 +122,12 @@
                         /// overridable hash function, for utility
                         virtual size_t hash_value() const { return 0; }
 
- /// return a hash value for the object. try the virtual method first, otherwise just use pointer value
+ /// return a hash value for the object
                         size_t hash() const
                         {
                                 if (size_t value = hash_value())
                                         return value;
- return ptrdiff_t(reinterpret_cast<const char *>(this) - 0);
+ return 0;//ptrdiff_t(reinterpret_cast<const char *>(this) - 0);
                         }
 
                 };


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