摘要:原文链接:http://www.cppblog.com/newcnzz/archive/2012/09/29/192428.htmlC++提供了四个转换运算符:const_cast <new_type> (expression)static_cast <new_type> (expression)reinterpret_cast <new_type> (expression)dynamic_cast <new_type> (expression)dynamic_cast: 通常在基类和派生类之间转换时使用; static_cast: 一般的转换,
阅读全文