c++/c#/java, 架构设计, 自然语言处理、机器学习
昼闲人寂,听数声鸟语悠扬,不觉耳根尽彻; 夜静天高,看一片云光舒卷,顿令眼界俱空。
摘要: 注册博客有一段时间,一直很忙没有写技术文章,今天把近期心得写出来一起分享。c++没有反射机制,我们可以通过c++的语言特性去实现同样的功能。本文介绍使用type_info实现的一些发射特性。1 type_info简介:class type_info {public: _CRTIMP virtual ~type_info(); _CRTIMP int operator==(const type_info& rhs) const; _CRTIMP int operator!=(const type_info& rhs) const; _CRTIMP int before(c... 阅读全文
posted @ 2012-03-16 10:51 dario. 阅读(12155) 评论(8) 推荐(5) 编辑