Subject: Re: [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:46:02
#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
Resolution: | Keywords:
-------------------------------+-------------------------
Comment (by dave.lowell@â¦):
I have a patched version of boost/functional/hash/hash.hpp which works
with char16_t and char32_t, but I can't seem to attach it (the spam filter
is unhappy with it).
Basically the change is the addition of the following:
{{{
#if !defined(BOOST_NO_CXX11_CHAR16_T)
template <> struct basic_numbers<char16_t> :
boost::hash_detail::enable_hash_value {};
#endif
#if !defined(BOOST_NO_CXX11_CHAR32_T)
template <> struct basic_numbers<char32_t> :
boost::hash_detail::enable_hash_value {};
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11145#comment:1> 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