Implement DR resolutions for filesystem::copy
authorJonathan Wakely <jwakely@redhat.com>
Mon, 24 Oct 2016 16:45:31 +0000 (17:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 24 Oct 2016 16:45:31 +0000 (17:45 +0100)
commitb3dec9e57e6960cae54187b7fa416052c8e32e19
tree31de0b552bad0b485a556d5796112652b9f67fa2
parent38000825cd37c3f132cd02edc4e8eb79aff4d3a6
Implement DR resolutions for filesystem::copy

* src/filesystem/ops.cc (do_copy_file): Return an error if either
source or destination is not a regular file.
(copy): Update comment to refer to LWG 2681. Implement 2682 and 2683
resolutions.
(read_symlink): Add missing ec.clear().
* testsuite/experimental/filesystem/operations/copy.cc: Update
expected behaviour for copying directories with create_symlinks.
Verify that error_code arguments are cleared if there's no error.
* testsuite/experimental/filesystem/operations/read_symlink.cc: New.

From-SVN: r241484
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/read_symlink.cc [new file with mode: 0644]