标准C++的类型转换符:static_cast、dynamic_cast、reinterpret_cast和const_cast(转载)-在线阅读-新书城 - 0 views
-
-
tianjinxtl on 03 May 12* static_cast - from Derived to Base is safe - basic data type - null pointer to normal pointer - to void type * dynamic_cast - Base to Derived, has RTTI check virtual function - Derived to Base is safe - Cross cast, get an null pointer. (static_cast get compiler error)
-