static_cast is telling the compiler, "Trust me, this is safe."
Whereas reinterpret_cast is telling the compiler, "I know this is unsafe; do it anyway."
static_cast is telling the compiler, "Trust me, this is safe."
Whereas reinterpret_cast is telling the compiler, "I know this is unsafe; do it anyway."
本文标题:C++ reinterpret_cast 和 static_ca
本文链接:https://www.haomeiwen.com/subject/pwsemrtx.html
网友评论