libstdc++: Fix mismatched noexcept-specifiers in filesystem::path [PR102499]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 27 Sep 2021 21:07:12 +0000 (22:07 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 28 Sep 2021 16:30:05 +0000 (17:30 +0100)
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

PR libstdc++/102499
* include/bits/fs_path.h (path::begin, path::end): Add noexcept
to declarations, to match definitions.

libstdc++-v3/include/bits/fs_path.h

index 92f7cbb..1918c24 100644 (file)
@@ -489,8 +489,8 @@ namespace __detail
     class iterator;
     using const_iterator = iterator;
 
-    iterator begin() const;
-    iterator end() const;
+    iterator begin() const noexcept;
+    iterator end() const noexcept;
 
     /// Write a path to a stream
     template<typename _CharT, typename _Traits>