From: Jonathan Wakely Date: Fri, 20 Jul 2018 11:52:54 +0000 (+0100) Subject: PR libstdc++/86595 add missing noexcept X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf0086f1c8ff9998fb55a27f6606bccbba873e09;p=gcc.git PR libstdc++/86595 add missing noexcept PR libstdc++/86595 * include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add noexcept. From-SVN: r262904 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 93d847a7fe4..c9cd62ab032 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2018-07-20 Jonathan Wakely + + PR libstdc++/86595 + * include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add + noexcept. + 2018-07-20 Fangrui Song * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use 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; }