3 ms·
Why are C11's char16_t and char32_t simply typedefs for uint16_t and uint32_t instead of new distinct types? C++ needed a distinct char16_t type so functions co
by cpeterso 14y ago
Why are C11's char16_t and char32_t simply typedefs for uint16_t and uint32_t instead of new distinct types? C++ needed a distinct char16_t type so functions could be overloaded for both char16_t and uint16_t. I guess the C standards committee wants to ease char16_t adoption for code that is already using uint16_t for UTF-16.