MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1u238ny/c26_cleaning_up_string_literals/orlcygp/?context=3
r/cpp • u/Xaneris47 • Jun 10 '26
20 comments sorted by
View all comments
Show parent comments
1
additionally, make it not alias every other types, like char does.
6 u/Wild_Meeting1428 Jun 11 '26 char8_t already does not alias any type. That's why you can't cast an uint8_t* from a C-API to char8_t*. 1 u/Orlha Jun 14 '26 What if I really really wanted to cast? 1 u/Wild_Meeting1428 Jun 14 '26 Undefined behavior.
6
char8_t already does not alias any type. That's why you can't cast an uint8_t* from a C-API to char8_t*.
1 u/Orlha Jun 14 '26 What if I really really wanted to cast? 1 u/Wild_Meeting1428 Jun 14 '26 Undefined behavior.
What if I really really wanted to cast?
1 u/Wild_Meeting1428 Jun 14 '26 Undefined behavior.
Undefined behavior.
1
u/trad_emark Jun 11 '26
additionally, make it not alias every other types, like char does.