Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-11-15 19:35:34


Author: danieljames
Date: 2007-11-15 19:35:34 EST (Thu, 15 Nov 2007)
New Revision: 41126
URL: http://svn.boost.org/trac/boost/changeset/41126

Log:
Fix the return values of the case insensitive hash examples.
Text files modified:
   sandbox/unordered/libs/unordered/doc/src_code/insensitive.cpp | 2 +-
   sandbox/unordered/libs/unordered/examples/case_insensitive.hpp | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/unordered/libs/unordered/doc/src_code/insensitive.cpp
==============================================================================
--- sandbox/unordered/libs/unordered/doc/src_code/insensitive.cpp (original)
+++ sandbox/unordered/libs/unordered/doc/src_code/insensitive.cpp 2007-11-15 19:35:34 EST (Thu, 15 Nov 2007)
@@ -21,7 +21,7 @@
     struct ihash
         : std::unary_function<std::string, bool>
     {
- bool operator()(std::string const& x) const
+ std::size_t operator()(std::string const& x) const
         {
             std::size_t seed = 0;
 

Modified: sandbox/unordered/libs/unordered/examples/case_insensitive.hpp
==============================================================================
--- sandbox/unordered/libs/unordered/examples/case_insensitive.hpp (original)
+++ sandbox/unordered/libs/unordered/examples/case_insensitive.hpp 2007-11-15 19:35:34 EST (Thu, 15 Nov 2007)
@@ -34,13 +34,13 @@
     };
 
     struct ihash
- : std::unary_function<std::string, bool>
+ : std::unary_function<std::string, std::size_t>
     {
         ihash() {}
         explicit ihash(std::locale const& l) : locale_(l) {}
 
         template <typename String>
- bool operator()(String const& x) const
+ std::size_t operator()(String const& x) const
         {
             std::size_t seed = 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