・ dynamic_cast:允许对象类型向上转换,即允许派生类向基类转换,但不允许基类向派生类转换,否则返回空指针 ・ const_cast:用于消除const限制 ・ static_cast:同类型转换,允许向上或向下转换,可以将枚举项和整形互相转换 ・ reinterpret_cast:略 来源:博客园作者:多弗朗强哥链接:https://www.cnblogs.com/chendeqiang/p/11483411.html 标签 类型转换