<string>
: Fix handling for char_traits<unicorn>
by frederick-vs-ja · Pull Request #4951 · microsoft/STL (original) (raw)
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 mentionchar8_t
. - Resolve
TRANSITION
comments in<regex>
, but test coverage is currently missing (which would be complicated and weird).