Add missing noexcept in string_view::find_first_of declaration
authorStephan Bergmann <sbergman@redhat.com>
Mon, 27 Nov 2017 19:43:40 +0000 (19:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 27 Nov 2017 19:43:40 +0000 (19:43 +0000)
2017-11-27  Stephan Bergmann  <sbergman@redhat.com>

* include/std/string_view (basic_string_view::find_first_of): Add
missing noexcept.

From-SVN: r255176

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/string_view

index 44641ebe5596cd2ca11feccfa73325123ec250d6..732d802b3b987acad8e880c5595558b9bf132cdc 100644 (file)
@@ -1,5 +1,8 @@
 2017-11-27  Stephan Bergmann  <sbergman@redhat.com>
 
+       * 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.
 
index fa834002726e81def579bdd1b053c6e92157ab1f..68b4b08f8f4cc612190686b6f51f14ed8b7652fe 100644 (file)
@@ -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