Modify

Ticket #3385 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Change History

comment:1 Changed 5 years ago by bemandawes

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.