Fix the return values of the case insensitive hash examples.

[SVN r41126]
This commit is contained in:
Daniel James
2007-11-16 00:35:34 +00:00
parent f0c62d3f0f
commit 50650fbd34
2 changed files with 80 additions and 2 deletions

View File

@@ -34,13 +34,13 @@ namespace hash_examples
};
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;