Add missing noexcept on definition to match declaration

* include/bits/regex.tcc (regex_iterator::operator==): Add missing
	noexcept.

From-SVN: r262146
This commit is contained in:
Jonathan Wakely 2018-06-26 13:24:47 +01:00 committed by Jonathan Wakely
parent 4723f0fb4e
commit 3da2f26ca4
2 changed files with 6 additions and 1 deletions

View 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> 2018-06-25 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/86112 PR libstdc++/86112

View File

@ -500,7 +500,7 @@ namespace __detail
typename _Rx_traits> typename _Rx_traits>
bool bool
regex_iterator<_Bi_iter, _Ch_type, _Rx_traits>:: 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) if (_M_pregex == nullptr && __rhs._M_pregex == nullptr)
return true; return true;