Title
[filesys.ts] [PDTS] path::compare(const string& s) wrong argument type
Status
open
Section
[class.path]
Submitter
Stephan T. Lavavej

Created on 2014-02-03.00:00:00 last changed 81 months ago

Messages

Date: 2016-01-28.01:00:35

Proposed resolution:

This wording is relative to SG3 working draft.

  1. Change class path synopsis, 8 [class.path], as indicated:

    // compare
    int compare(const path& p) const noexcept;
    int compare(const string_type& s) const;
    int compare(const value_type* s) const;
    
  2. Change path compare prototype specification, 8.4.8 [path.compare], as indicated:

    int compare(const string_type& s) const;
    
Date: 2014-02-13.00:00:00

[ 2014-02-13 LWG/SG-3 Issaquah: Proposed wording accepted. ]

Date: 2014-02-08.00:00:00

[ 2014-02-08 Daniel comments and provides wording ]

This issue is the same as 2643 and resolves that issue as well.

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

path has "int compare(const string& s) const;" but it should almost certainly take const string_type&, since the third overload takes const value_type*.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-01-28 01:00:35adminsetmessages: + msg7874
2016-01-28 01:00:35adminsetmessages: + msg7873
2016-01-28 01:00:35adminsetmessages: + msg7872
2014-02-03 00:00:00admincreate