[PATCH] PR libstdc++/86595 add missing noexcept
Jonathan Wakely
jwakely@redhat.com
Fri Jul 20 11:52:00 GMT 2018
PR libstdc++/86595
* include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
noexcept.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
commit c857adf35f9849ddda1148c65813aba86acb5c6a
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jul 20 12:35:05 2018 +0100
PR libstdc++/86595 add missing noexcept
PR libstdc++/86595
* include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
noexcept.
diff --git a/libstdc++-v3/include/bits/fs_dir.h b/libstdc++-v3/include/bits/fs_dir.h
index 6b332e171cf..cf7a3c29376 100644
--- a/libstdc++-v3/include/bits/fs_dir.h
+++ b/libstdc++-v3/include/bits/fs_dir.h
@@ -138,8 +138,13 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
refresh(__ec);
}
- void refresh() { _M_type = symlink_status().type(); }
- void refresh(error_code& __ec) { _M_type = symlink_status(__ec).type(); }
+ void
+ refresh()
+ { _M_type = symlink_status().type(); }
+
+ void
+ refresh(error_code& __ec) noexcept
+ { _M_type = symlink_status(__ec).type(); }
// observers
const filesystem::path& path() const noexcept { return _M_path; }
More information about the Libstdc++
mailing list