#include <iostream> using namespace std; int main() { char * pt; pt = new char('x'); cout << *static_cast<uint8_t*>(pt); return 0; }
prog.cpp: In function ‘int main()’:
prog.cpp:8:35: error: invalid static_cast from type ‘char*’ to type ‘uint8_t* {aka unsigned char*}’
Standard output is empty