Opened 8 years ago

Closed 8 years ago

#3385 closed Bugs (fixed)

Specifications of bool opeartor==(path, string) is changed.

Reported by: Shuji Yamasaki <shu@…> Owned by: Beman Dawes
Milestone: Boost 1.41.0 Component: filesystem
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:


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

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?

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by Beman Dawes

Resolution: fixed
Status: newclosed

(In [56139]) Fix #3385, add test cases

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.