Avoid redundant calls to filesystem::status_known
commitf7373fce65da8e99ad051481ba711756b69baa7e
authorJonathan Wakely <jwakely@redhat.com>
Thu, 4 Jan 2018 13:46:22 +0000 (4 13:46 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 4 Jan 2018 13:46:22 +0000 (4 13:46 +0000)
treeb3e7b090c35ae6ab20e8375e6a1ff25bf899bb32
parentc54af0682ce0881ecde74a3b7502287a53ced378
Avoid redundant calls to filesystem::status_known

* include/bits/fs_ops.h (exists(const path&, error_code&))): Only
check status_known once.
* include/experimental/bits/fs_ops.h: Likewise.

From-SVN: r256243
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_ops.h
libstdc++-v3/include/experimental/bits/fs_ops.h