]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Partially revert r11-9772-g6f8133689f4397 [PR105915]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Jun 2022 12:01:16 +0000 (13:01 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 10 Jun 2022 14:26:28 +0000 (15:26 +0100)
The r11-9772-g6f8133689f4397 backport made two changes, but only one was
needed on the gcc-11 branch. The other should not have been backported,
and causes errors with clang. This removes the unwanted part.

libstdc++-v3/ChangeLog:

PR libstdc++/105915
* include/experimental/bits/fs_path.h (path::begin, path::end):
Remove noexcept from declarations.

(cherry picked from commit 60c84707034f025de3c8821cc5d6f27ff59143b0)

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

index 927cf2278d106ccf4b7ce67bf19626912c5355c4..0a8f4eee0a1ac68c6ee48a0d0029d2b6d2b63a27 100644 (file)
@@ -419,8 +419,8 @@ namespace __detail
     class iterator;
     typedef iterator const_iterator;
 
-    iterator begin() const noexcept;
-    iterator end() const noexcept;
+    iterator begin() const;
+    iterator end() const;
 
     /// @cond undocumented
     // Create a basic_string by reading until a null character.