Skip to content

Implement changes missed from P1148R0#2222

Merged
StephanTLavavej merged 1 commit into
microsoft:mainfrom
CaseyCarter:p1148-fixup
Nov 13, 2021
Merged

Implement changes missed from P1148R0#2222
StephanTLavavej merged 1 commit into
microsoft:mainfrom
CaseyCarter:p1148-fixup

Conversation

@CaseyCarter
Copy link
Copy Markdown
Contributor

  • 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
Copy Markdown
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
Copy Markdown
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