diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-02-04 15:23:31 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-02-04 19:51:26 +0000 |
commit | da72e0fd20f87bb523a81a505c00546d3622e9dd (patch) | |
tree | 3955102550af850e020b1ccef3d1eacaaf5b772f /libstdc++-v3/src | |
parent | ebf6175464768983a2d8c82c2d47771ee89192b8 (diff) | |
download | gcc-da72e0fd20f87bb523a81a505c00546d3622e9dd.zip gcc-da72e0fd20f87bb523a81a505c00546d3622e9dd.tar.gz gcc-da72e0fd20f87bb523a81a505c00546d3622e9dd.tar.bz2 |
libstdc++: Remove un-implementable noexcept from Filesystem TS operations
LWG 3014 removed these incorrect noexcept specifications from the C++17
std::filesystem operations. They are also incorrect on the experimental
TS versions and should be removed from them too.
libstdc++-v3/ChangeLog:
* include/experimental/bits/fs_ops.h (fs::copy_file): Remove
noexcept.
(fs::create_directories): Likewise.
(fs::remove_all): Likewise.
* src/filesystem/ops.cc (fs::copy_file): Remove noexcept.
(fs::create_directories): Likewise.
(fs::remove_all): Likewise.
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/filesystem/ops.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/src/filesystem/ops.cc b/libstdc++-v3/src/filesystem/ops.cc index c020f62..e2a2cef 100644 --- a/libstdc++-v3/src/filesystem/ops.cc +++ b/libstdc++-v3/src/filesystem/ops.cc @@ -372,7 +372,7 @@ fs::copy_file(const path& from, const path& to, copy_options option) bool fs::copy_file(const path& from, const path& to, copy_options options, - error_code& ec) noexcept + error_code& ec) { #ifdef _GLIBCXX_HAVE_SYS_STAT_H return do_copy_file(from.c_str(), to.c_str(), copy_file_options(options), @@ -424,7 +424,7 @@ fs::create_directories(const path& p) } bool -fs::create_directories(const path& p, error_code& ec) noexcept +fs::create_directories(const path& p, error_code& ec) { if (p.empty()) { @@ -1098,7 +1098,7 @@ fs::remove_all(const path& p) } std::uintmax_t -fs::remove_all(const path& p, error_code& ec) noexcept +fs::remove_all(const path& p, error_code& ec) { // Use the C++17 implementation. return std::filesystem::remove_all(p.native(), ec); |