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 changes missed from P1148R0 #2222

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

CaseyCarter
Copy link
Member

  • basic_string(const T& t, size_type, size_type, Alloc = Alloc()) constructor should allow t's convertible to pointer-to-element
  • Each family of find functions is (1) missing conditional noexcept on the "convertible-to-string_view" overload, and (2) incorrect that noexcept on the "element, offset" overload is strengthened

We apparently overlooked these bits when implementing P1148R0 which was largely a clean rewording paper. A new internal test suite noticed one of the missed changes, I audited P1148 to find the others.

Fixes VSO-1411144
Fixes AB#1411144

* `basic_string(const T& t, size_type, size_type, Alloc = Alloc())` constructor _should_ allow `t`'s convertible to pointer-to-element
* Each family of `find` functions is (1) missing conditional `noexcept` on the "convertible-to-`string_view`" overload, and (2) incorrect that `noexcept` on the "element, offset" overload is strengthened

We apparently overlooked these bits when implementing P1148R0 which was largely a clean rewording paper.

Fixes VSO-1411144
Fixes AB#1411144
@CaseyCarter CaseyCarter added the bug Something isn't working label Sep 28, 2021
@CaseyCarter CaseyCarter requested a review from a team as a code owner September 28, 2021 05:24
@StephanTLavavej StephanTLavavej self-assigned this Sep 29, 2021
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed, or if more work is required.

@StephanTLavavej StephanTLavavej merged commit 5739401 into microsoft:main Nov 13, 2021
@StephanTLavavej
Copy link
Member

Thanks for finding and fixing these string conformance issues! 🧵 🧶 😻

@CaseyCarter CaseyCarter deleted the p1148-fixup branch November 14, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants