Title
[filesys.ts] [PDTS] class directory_entry should retain operator const path&() from V2
Status
open
Section
[class.directory_entry]
Submitter
P.J. Plauger

Created on 2014-01-30.00:00:00 last changed 82 months ago

Messages

Date: 2016-01-28.01:00:35

Proposed resolution:

Change 12 Class directory_entry [class.directory_entry]:

// observers
const path&  path() const noexcept;
operator const path&() const noexcept;
file_status  status() const;
file_status  status(error_code& ec) const noexcept;
file_status  symlink_status() const;
file_status  symlink_status(error_code& ec) const noexcept;

Change 12.3 directory_entry observers [directory_entry.obs]:

const path& path() const noexcept;
operator const path&() const noexcept;

Returns: m_path

Date: 2016-01-28.01:00:35

[ 17 Jun 2014 Rapperswil LWG discusses in depth, accepts proposed wording. ]

Date: 2014-06-02.00:00:00

[ 2014-06-02 Beman Dawes provides rationale: ]

This conversion operator was removed when status() and symlink_status() were added during the transition from V2 to V3 as it seemed a bit unusual to have a conversion operator for one of the several values held. Users complained as they had found the automatic conversion convenient in the most common directory_entry use case.
Date: 2014-05-19.00:00:00

[ 2014-05-19 Beman Dawes supplied proposed wording. ]

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

class directory_entry should retain operator const path&() from V2.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-01-28 01:00:35adminsetmessages: + msg7834
2016-01-28 01:00:35adminsetmessages: + msg7833
2016-01-28 01:00:35adminsetmessages: + msg7832
2016-01-28 01:00:35adminsetmessages: + msg7831
2014-01-30 00:00:00admincreate