mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
300a952ede
In C++20, `u8` literals create values of type `char8_t` instead of `char`, and these can't be implicitly converted. This macro mitigates the difference and allows the same code to compile under C++14/17 modes and C++20, preserving the `char` type while ensuring that the text is interpreted as UTF-8.