游戏人生

不积跬步,无以至千里;不积小流,无以成江海。

导航

08 2015 档案

[原] 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 crazii 阅读(465) 评论(0) 推荐(0) 编辑

Cross Platform Note: STD C++ Preprocessor directives & pre-defined macros
摘要:ref:http://www.cplusplus.com/doc/tutorial/preprocessor/concolusion:directives:#define #undef#include#if #else #elif #endif #ifdef #ifndef#error ( #war... 阅读全文

posted @ 2015-08-09 21:57 crazii 阅读(421) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示