Modify

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: bemandawes
Milestone: Boost 1.41.0 Component: filesystem
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

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?

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by bemandawes

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain bemandawes.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.