[PATCH] D141392: Avoid u8"" literals in tests, their type changes in C++20
Jens Massberg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 05:33:16 PST 2023
massberg added a comment.
An alternative is to cast the `char8_t*` to `char_t*` in the `<<` operator of the ostream of to get back the old behavior, e.g. something like
raw_ostream &operator<<(const char8_t *Str) {
return this->operator<<(reinterpret_cast<const char *>(Str));
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141392/new/
https://reviews.llvm.org/D141392
More information about the llvm-commits
mailing list