Do the C++20
's strict aliasing rules [basic.lval]/11 arbitrarily allow following...
- cast between
char*
andchar8_t*
string str = "string";
u8string u8str { (char8_t*) &*str.data() }; // c++20 u8string
u8string u8str2 = u8"zß水
Do the C++20
's strict aliasing rules [basic.lval]/11 arbitrarily allow following...
char*
and char8_t*
string str = "string";
u8string u8str { (char8_t*) &*str.data() }; // c++20 u8string
u8string u8str2 = u8"zß水