This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Default special members of regex types and add noexcept
- From: Stephan Bergmann <sbergman at redhat dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Jun 2018 09:19:21 +0200
- Subject: Re: [PATCH] Default special members of regex types and add noexcept
- References: <20180608105942.GA5624@redhat.com>
On 08/06/18 13:01, Jonathan Wakely wrote:
Nothing very exciting, just adding noexcept and defaulting some
members.
* include/bits/regex.h (sub_match): Add noexcept to default
constructor and length observer.
(match_results): Add noexcept to default constructor and observers
with no preconditions. Define destructor as defaulted.
(operator==, operator!=, swap): Add noexcept.
(regex_iterator): Add default member initializers and define default
constructor and destructor as defaulted. Add noexcept to equality
and dereference operators.
Tested powerpc64le-linux, committed to trunk.
Looks like that forgot to also add noexcept to the definition of
regex_iterator<_Bi_iter, _Ch_type, _Rx_traits>::
operator==(const regex_iterator& __rhs) const
in libstdc++-v3/include/bits/regex.tcc?