KEMBAR78
`<string>`: Fix handling for `char_traits<unicorn>` by frederick-vs-ja · Pull Request #4951 · microsoft/STL · GitHub
Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

Fixes #4930. Ideally, when T is an implementation-controlled type, special handling should be enabled for char_traits<T> to reject more unintended element types. But the complete work is impractical, so this PR restricts the handling to arithmetic types and nullptr_t.

Drive-by changes:

  • Update the static_assert message to mention char8_t.
  • Resolve TRANSITION comments in <regex>, but test coverage is currently missing (which would be complicated and weird).

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner September 12, 2024 16:36
@CaseyCarter CaseyCarter added the bug Something isn't working label Sep 12, 2024
@StephanTLavavej StephanTLavavej removed their assignment Sep 19, 2024
@StephanTLavavej StephanTLavavej self-assigned this Sep 19, 2024
@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 5af09e7 into microsoft:main Sep 19, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

🧵 🦄 🛠️

@frederick-vs-ja frederick-vs-ja deleted the char_traits-unicorn branch September 19, 2024 23:10
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

Archived in project

Development

Successfully merging this pull request may close these issues.

<string>: basic_string<unicorn>::find_meow_of family with std::char_traits<unicorn> specialization are not supported

4 participants