Title
Errors in Copy
Status
c++17
Section
[fs.op.copy]
Submitter
Jonathan Wakely

Created on 2014-07-28.00:00:00 last changed 81 months ago

Messages

Date: 2016-04-10.22:23:37

Proposed resolution:

Change [fs.op.copy] paragraph 16 as indicated:

Otherwise if !exists(t) & (options & copy_options::copy_symlinks) != copy_options::none , then copy_symlink(from, to, options).

Change [fs.op.copy] paragraph 26 as indicated:

as if by for (const directory_entry& x : directory_iterator(from))

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.copy] paragraph 16 says:

Otherwise if !exists(t) & (options & copy_options::copy_symlinks) != copy_options::none, then copy_symlink(from, to, options).

But there is no overload of copy_symlink that takes a copy_options; it should be copy_symlink(from, to).

[fs.op.copy] Paragraph 26 says:

as if by for (directory_entry& x : directory_iterator(from))

but the result of dereferencing a directory_iterator is const; it should be:

as if by for (const directory_entry& x : directory_iterator(from))

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: + msg8044
2016-03-07 04:46:57adminsetstatus: new -> ready
2016-01-28 01:00:35adminsetmessages: + msg7933
2014-07-28 00:00:00admincreate