LWG2725 Fix error reporting for filesystem::exists
authorJonathan Wakely <jwakely@redhat.com>
Fri, 21 Oct 2016 17:00:59 +0000 (18:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 21 Oct 2016 17:00:59 +0000 (18:00 +0100)
commit2be921271333c81ec9fcf71ba49110bf23971d09
treeb8178b78f1624dff2b5fe484dcb72077cf54e82a
parente59e183f69dcfac77e043854ca2ef37120c6eda1
LWG2725 Fix error reporting for filesystem::exists

* include/experimental/bits/fs_ops.h
(exists(const path&, error_code&)): Clear error if status is known
(LWG 2725).
(status(const path&, error_code&)): Handle EOVERFLOW.
* testsuite/experimental/filesystem/operations/exists.cc: Test
overload taking an error_code.

From-SVN: r241417
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/fs_ops.h
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc