Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement LWG-2195 Missing constructors for match_results #3506

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Feb 26, 2023

Fixes #3411.

Also adds default member initializers and makes match_results's default constructor defaulted.


The implicitly declared move constructor seems not always noexcept. Should I fix it together?

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner February 26, 2023 09:10
@StephanTLavavej StephanTLavavej added the LWG Library Working Group issue label Feb 26, 2023
@StephanTLavavej
Copy link
Member

The implicitly declared move constructor seems not always noexcept. Should I fix it together?

I don't think it needs to be changed here. vector's move ctor is noexcept (this is a known untruth in debug mode) so AFAIK match_results gets the right behavior.

@frederick-vs-ja
Copy link
Contributor Author

The implicitly declared move constructor seems not always noexcept. Should I fix it together?

I don't think it needs to be changed here. vector's move ctor is noexcept (this is a known untruth in debug mode) so AFAIK match_results gets the right behavior.

Oh, I meant that the implicitly declared move ctor is currently not noexcept when is_nothrow_move_constructible_v<_BidIt> is false...

@StephanTLavavej StephanTLavavej self-assigned this Mar 2, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 6541cec into microsoft:main Mar 3, 2023
@StephanTLavavej
Copy link
Member

Thanks for increasing <regex> conformance, an elusive goal! 🎉 🥅 🎉

@frederick-vs-ja frederick-vs-ja deleted the lwg-2195 branch March 3, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LWG Library Working Group issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LWG-2195 Missing constructors for match_results
3 participants
  翻译: