c++运行时类型识别(rtti)
摘要:一个简单运行时类型识别 namespace rtti_ex { /* * 类型信息基类 */ class i_type_info { public: // 判断是否是指定类型 bool is(const char* _name) const { return name() == _nam...
阅读全文
posted @ 2015-05-31 14:13
posted @ 2015-05-31 14:13
posted @ 2015-05-20 21:46