PR libstdc++/86595 add missing noexcept

PR libstdc++/86595
	* include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
	noexcept.

From-SVN: r262904
This commit is contained in:
Jonathan Wakely 2018-07-20 12:52:54 +01:00 committed by Jonathan Wakely
parent 2143168e07
commit bf0086f1c8
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2018-07-20 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/86595
* include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
noexcept.
2018-07-20 Fangrui Song <maskray@google.com>
* include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use

View File

@ -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; }