From: Stephan Bergmann Date: Mon, 27 Nov 2017 19:43:40 +0000 (+0000) Subject: Add missing noexcept in string_view::find_first_of declaration X-Git-Tag: basepoints/gcc-9~3037 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f42ffd7f7c416a0702de90d2b0b374e877dc33b;p=thirdparty%2Fgcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 44641ebe5596..732d802b3b98 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 fa834002726e..68b4b08f8f4c 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