[Boost-bugs] [Boost C++ Libraries] #11145: Unable to hash char16_t or char32_t

Subject: [Boost-bugs] [Boost C++ Libraries] #11145: Unable to hash char16_t or char32_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-25 14:26:42


#11145: Unable to hash char16_t or char32_t
------------------------------+-------------------------
 Reporter: dave.lowell@… | Owner: danieljames
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: hash
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 boost::hash doesn't work on char16_t or char32_t data. This did work
 previously (at least as recently as boost 1.49). There doesn't seem to
 have been a hash_value overload for them, but it looks like they were
 implicitly converted to something that was supported.

 === Reproduction Code ===
 {{{
 #include <boost/functional/hash.hpp>
 #include <string>

 void foo() {
     std::u16string s;
     auto h = boost::hash<decltype(s)>()(s);
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11145>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC