You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In c++20 u8 string literals no longer default to const char[N], instead becoming const char8_t[N].
Since there are currently no explicit conversions to or from char8_t*, u8string, etc., examples like the one proposed in the readme (using u8"" string literals) no longer compile successfully when configured to use the latest standard.
the __cpp_char8_t and __cpp_lib_char8_t macros could possibly be used to determine support for the extended types.
The text was updated successfully, but these errors were encountered:
Hello,
Thank you for your heads-up regarding char8_t in C++20.
I'll implement the changes you suggest 👍, it might take me a week or so.
Best Regards,
Jakob
Hi again,
as it turns out, I am so busy with university, I won't make it within two weeks or so. If you like, please submit a pull request implementing the necessary changes.
Thanks,
Jakob
PS: I will still try to do it as soon as I get the chance to.
I just committed a draft for C++20 support 😃 The way it works is that beyond C++17, the underlying data type char is entirely replaced by char8_t. Could you make sure, whether that is what you intend and whether it compiles under C++20?
(I did not have a C++20-able compiler to check it against).
In c++20 u8 string literals no longer default to const char[N], instead becoming const char8_t[N].
Since there are currently no explicit conversions to or from char8_t*, u8string, etc., examples like the one proposed in the readme (using u8"" string literals) no longer compile successfully when configured to use the latest standard.
the __cpp_char8_t and __cpp_lib_char8_t macros could possibly be used to determine support for the extended types.
The text was updated successfully, but these errors were encountered: