Title
status() effects cannot be implemented as specified
Status
c++17
Section
[fs.op.status]
Submitter
Jonathan Wakely

Created on 2015-09-15.00:00:00 last changed 89 months ago

Messages

Date: 2016-04-10.22:23:37

Proposed resolution:

Change [fs.op.status] paragraph 2:

Effects: As if:

error_code ec;
file_status result = status(p, ec);
if (result.type() == file_type::none)
...
Date: 2016-04-10.22:23:37

[ Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS ]

Date: 2016-04-10.22:23:37

[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 for file_status and file_type, and the conversion from file_type to file_status is explicit.

History
Date User Action Args
2017-07-30 20:15:43adminsetstatus: wp -> c++17
2016-06-28 12:47:21adminsetstatus: ready -> wp
2016-04-10 22:23:37adminsetmessages: + msg8046
2016-03-07 04:46:57adminsetstatus: new -> ready
2016-01-28 01:00:35adminsetmessages: + msg7938
2015-09-15 00:00:00admincreate