Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4038: hash_value(float) collision
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-24 08:28:31
#4038: hash_value(float) collision
----------------------------------------+-----------------------------------
Reporter: dsharlet@⦠| Owner: danieljames
Type: Bugs | Status: assigned
Milestone: Boost 1.43.0 | Component: hash
Version: Boost 1.41.0 | Severity: Problem
Keywords: hash_value collision float |
----------------------------------------+-----------------------------------
Changes (by danieljames):
* status: new => assigned
Comment:
Because in cross platform development there's no guarantee that two floats
with different binary representations will be unequal, and there's no
guarantee that the binary representation will be the same size as
std::size_t. I do use a binary algorithm on a limited number of platforms,
and could for others, but it has to be done carefully and there are more
important things to do.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4038#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:02 UTC