libstdc++: Add noexcept to declaration of path::_List members
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 Oct 2020 14:48:50 +0000 (14:48 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 27 Oct 2020 14:50:37 +0000 (14:50 +0000)
libstdc++-v3/ChangeLog:

* include/bits/fs_path.h (path::_List::begin, path::_List::end):
Add noexcept to match definitions in src/c++17/fs_path.cc.

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

index 5a0917c582d46ef8bc1af03ae780af7ad0578c6b..7c0b2462d00c20a62dc43043d6026dbd8e3a7b0c 100644 (file)
@@ -681,10 +681,10 @@ namespace __detail
       // All the member functions below here have a precondition !empty()
       // (and they should only be called from within the library).
 
-      iterator begin();
-      iterator end();
-      const_iterator begin() const;
-      const_iterator end() const;
+      iterator begin() noexcept;
+      iterator end() noexcept;
+      const_iterator begin() const noexcept;
+      const_iterator end() const noexcept;
 
       value_type& front() noexcept;
       value_type& back() noexcept;