This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of TS status.
class directory_entry
should retain operator const path&()
from V2Section: 12 [filesys.ts::class.directory_entry] Status: TS Submitter: P.J. Plauger Opened: 2014-01-30 Last modified: 2017-07-30
Priority: Not Prioritized
View all other issues in [filesys.ts::class.directory_entry].
View all issues with TS status.
Discussion:
Addresses: filesys.ts
class directory_entry
should retain operator const path&()
from V2.
[2014-05-19 Beman Dawes supplied proposed wording.]
[2014-06-02 Beman Dawes provides rationale:]
This conversion operator was removed whenstatus()
andsymlink_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 commondirectory_entry
use case.
[17 Jun 2014 Rapperswil LWG discusses in depth, accepts proposed wording.]
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