Similar questions were asked many times, but it seems like i'm still missing something:
auto message = u8"Текст";
client.sendMessage(channel.ID, message);
When compiling this snippet with -W-c++20-compat flag with Clang compiler it gives the following warning next to the u8 literal:
type of UTF-8 string literal will change from array of const char to array of const char8_t in C++20 [-Wc++20-compat]
The P1423R2 document suggests a number of ways for remediation. I tried the explicit conversion function approach first, but it didn't silence the warning, so decided to implement emulation with macroses then and it didn't make the warning vanish either (apparently because Clang generates this warnings after preprocessor step).
I understand that the given solutions should successfully address the given problem and provide backward/forward compatibility between C++20/pre C++20 standards, so i could just ignore this warning. However the answer i'm looking for is how this warning is supposed to be addressed? Sometimes it's just impossible to remove u8 literals in your code as it makes drastic difference under some systems, and my case is exactly about this.