[Boost-bugs] [Boost C++ Libraries] #3385: Specifications of bool opeartor==(path, string) is changed.

Subject: [Boost-bugs] [Boost C++ Libraries] #3385: Specifications of bool opeartor==(path, string) is changed.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-02 01:37:39


#3385: Specifications of bool opeartor==(path, string) is changed.
----------------------------------------------+-----------------------------
 Reporter: Shuji Yamasaki <shu@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: filesystem
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------
 {{{
 Before:
 path("c:\\file") == "c:\\file" //true
 path("c:\\file") == "c:/file" //true

 Current:
 path("c:\\file") == "c:\\file" //false
 path("c:\\file") == "c:/file" //true

 I found the comment in path.hpp:
 // operator == uses string compare rather than !(lhs < rhs) && !(rhs <
 lhs) because
 // the result is the same yet the direct string compare is much more
 efficient that
 // lexicographical_compare, and lexicographical_compare used twice at
 that.

 Is it intended?
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3385>
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:01 UTC