Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5650: Adding hash_value for filesystem::path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-28 11:35:31
#5650: Adding hash_value for filesystem::path
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: danieljames
Type: Feature Requests | Status: assigned
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by danieljames):
* owner: bemandawes => danieljames
* status: new => assigned
Comment:
That won't work because path's operator== is not the same as the string's
operator==, so paths that are equal will hash to different values. I'll
write a patch when I get the chance. You also shouldn't call `hash_value`
directly - if at a later date filesystem uses a custom string type, then
that won't pick up its `hash_value` by ADL.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5650#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:06 UTC