Add missing noexcept on definition to match declaration
authorJonathan Wakely <jwakely@redhat.com>
Tue, 26 Jun 2018 12:24:47 +0000 (13:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 26 Jun 2018 12:24:47 +0000 (13:24 +0100)
* include/bits/regex.tcc (regex_iterator::operator==): Add missing
noexcept.

From-SVN: r262146

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.tcc

index eb79e8172b94cea196126c9661ff72b37f150339..0da61d322aad9a1414baaee81d227491b1a3bbcb 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/regex.tcc (regex_iterator::operator==): Add missing
+       noexcept.
+
 2018-06-25  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/86112
index b92edb9ab290e92df1c07f44224310402893786e..dcf660902bccc96c499765dde59a371ecf592510 100644 (file)
@@ -500,7 +500,7 @@ namespace __detail
           typename _Rx_traits>
     bool
     regex_iterator<_Bi_iter, _Ch_type, _Rx_traits>::
-    operator==(const regex_iterator& __rhs) const
+    operator==(const regex_iterator& __rhs) const noexcept
     {
       if (_M_pregex == nullptr && __rhs._M_pregex == nullptr)
        return true;