This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++17 status.
status() effects cannot be implemented as specifiedSection: 31.12.13.36[fs.op.status]Status:C++17Submitter: Jonathan WakelyOpened: 2015-09-15Last modified: 2017-07-30
Priority:0
View all otherissues in [fs.op.status].
View all issues withC++17 status.
Discussion:
31.12.13.36[fs.op.status] paragraph 2 says:
Effects: As if:
error_code ec;file_status result = status(p, ec);if (result == file_type::none)...
This won't compile, there is no comparison operator forfile_status andfile_type,and the conversion fromfile_type tofile_status is explicit.
[Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS]
Proposed resolution:
Change 31.12.13.36[fs.op.status] paragraph 2:
Effects: As if:
error_code ec;file_status result = status(p, ec);if (result.type() == file_type::none)...