PR libstdc++/86595 add missing noexcept
authorJonathan Wakely <jwakely@redhat.com>
Fri, 20 Jul 2018 11:52:54 +0000 (12:52 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Jul 2018 11:52:54 +0000 (12:52 +0100)
PR libstdc++/86595
* include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
noexcept.

From-SVN: r262904

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_dir.h

index 93d847a7fe41b255eef0551ac666e18520afffe5..c9cd62ab03296af2c1b21477829d2be24d97bb5d 100644 (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
index 6b332e171cfaa397f1b38d8080e0c17f1d079304..cf7a3c29376a52341ab491bad6e75e9cf9fd35a5 100644 (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; }