[原] RTTI 为什么type_info 有比较操作
摘要:The lifetime of the object returned bytypeidextends to the end of the program.根据C++标准, typeid()返回的type_info对象的生命周期那么长, 那么能不能通过直接比较指针来判断类型一致? 例如std::ma...
阅读全文
posted @ 2015-08-28 11:09