[PATCH] Default special members of regex types and add noexcept
Jonathan Wakely
jwakely@redhat.com
Tue Jun 26 12:25:00 GMT 2018
On 26/06/18 09:19 +0200, Stephan Bergmann wrote:
>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?
Indeed I did, thanks.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 834 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180626/bfa05c08/attachment.bin>
More information about the Libstdc++
mailing list