diff mbox series

[committed] libstdc++: Fix mismatched noexcept-specifiers in filesystem::path [PR102499]

Message ID YVNMAfzXHZJZkNzz@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix mismatched noexcept-specifiers in filesystem::path [PR102499] | expand

Commit Message

Jonathan Wakely Sept. 28, 2021, 5:08 p.m. UTC
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.

Tested x86_64-linux. Committed to trunk.
commit f2b7f56a15d9cbbd2f0db22e0e39c4dd161bab69
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Sep 27 22:07:12 2021

    libstdc++: Fix mismatched noexcept-specifiers in filesystem::path [PR102499]
    
    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.
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h
index 92f7cbbe357..1918c243d74 100644
--- a/libstdc++-v3/include/bits/fs_path.h
+++ b/libstdc++-v3/include/bits/fs_path.h
@@ -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>