2010年5月3日

C++ dynamic_cast, static_cast, reinterpret_cast 我的简单理解

摘要: static_cast:一般用来做类型强转. 类似以下, 转换有编译器的一个验证. IntelliSense: the operand of a runtime dynamic_cast must have a polymorphic class type所以比之前要安全多了. 减少了很多类似 if(ptr_ret) goto: bad_convertion 之类的代码, 但目前也不能说100%保... 阅读全文

posted @ 2010-05-03 00:15 无法显示此网页 阅读(677) 评论(0) 推荐(0) 编辑

导航