From 0f42ffd7f7c416a0702de90d2b0b374e877dc33b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Nov 2017 19:43:40 +0000 Subject: [PATCH] Add missing noexcept in string_view::find_first_of declaration 2017-11-27 Stephan Bergmann * include/std/string_view (basic_string_view::find_first_of): Add missing noexcept. From-SVN: r255176 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/std/string_view | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 44641ebe559..732d802b3b9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-11-27 Stephan Bergmann + * include/std/string_view (basic_string_view::find_first_of): Add + missing noexcept. + * include/bits/unordered_map.h (unordered_map): Fix deduction guide. * include/debug/unordered_map (unordered_map): Likewise. diff --git a/libstdc++-v3/include/std/string_view b/libstdc++-v3/include/std/string_view index fa834002726..68b4b08f8f4 100644 --- a/libstdc++-v3/include/std/string_view +++ b/libstdc++-v3/include/std/string_view @@ -323,7 +323,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return this->find(__c, __pos); } constexpr size_type - find_first_of(const _CharT* __str, size_type __pos, size_type __n) const; + find_first_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; constexpr size_type find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept -- 2.30.2