From 6cff9199c10272a67e727ef4544015395770f1c3 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 19 Apr 2017 12:03:43 +0100 Subject: [PATCH] PR libstdc++/80448 remove noexcept from defaulted functions PR libstdc++/80448 * include/experimental/bits/fs_dir.h (directory_iterator) (recursive_directory_iterator): Remove noexcept from defaulted constructors. From-SVN: r246993 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/experimental/bits/fs_dir.h | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3d0561ba36e..01156a0cea6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2017-04-19 Jonathan Wakely + PR libstdc++/80448 + * include/experimental/bits/fs_dir.h (directory_iterator) + (recursive_directory_iterator): Remove noexcept from defaulted + constructors. + PR libstdc++/80446 * include/std/type_traits (is_aggregate): Change __has_builtin checks. * libsupc++/new (launder): Likewise. diff --git a/libstdc++-v3/include/experimental/bits/fs_dir.h b/libstdc++-v3/include/experimental/bits/fs_dir.h index 3bdf9115448..0efaf944f60 100644 --- a/libstdc++-v3/include/experimental/bits/fs_dir.h +++ b/libstdc++-v3/include/experimental/bits/fs_dir.h @@ -181,7 +181,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 typedef const directory_entry& reference; typedef input_iterator_tag iterator_category; - directory_iterator() noexcept = default; + directory_iterator() = default; explicit directory_iterator(const path& __p) @@ -262,7 +262,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 typedef const directory_entry& reference; typedef input_iterator_tag iterator_category; - recursive_directory_iterator() noexcept = default; + recursive_directory_iterator() = default; explicit recursive_directory_iterator(const path& __p) @@ -282,8 +282,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 recursive_directory_iterator( const recursive_directory_iterator&) = default; - recursive_directory_iterator( - recursive_directory_iterator&&) noexcept = default; + recursive_directory_iterator(recursive_directory_iterator&&) = default; ~recursive_directory_iterator(); -- 2.30.2