From 3da2f26ca45060ddd8514010090353a2adec334a Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 26 Jun 2018 13:24:47 +0100 Subject: [PATCH] Add missing noexcept on definition to match declaration * include/bits/regex.tcc (regex_iterator::operator==): Add missing noexcept. From-SVN: r262146 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/regex.tcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index eb79e8172b9..0da61d322aa 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-06-26 Jonathan Wakely + + * include/bits/regex.tcc (regex_iterator::operator==): Add missing + noexcept. + 2018-06-25 Jonathan Wakely PR libstdc++/86112 diff --git a/libstdc++-v3/include/bits/regex.tcc b/libstdc++-v3/include/bits/regex.tcc index b92edb9ab29..dcf660902bc 100644 --- a/libstdc++-v3/include/bits/regex.tcc +++ b/libstdc++-v3/include/bits/regex.tcc @@ -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; -- 2.30.2