Projects > cpp > Issues > Refactor #2650

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Remove class TypeInfo

Refactor #2650 [Closed]
zhangxm 2013-08-21 07:41 . Updated about 3 years ago

We use TypeInfo in cocos2d-x to assign a unique id to a class. The unique id is used in jsb.
In c++11 we can get the information from typeid::hash_code(), so can remove TypeInfo.

typeid(Node).hash_code(); // will return a unique hash code of Node.
zhangxm 2013-08-23 02:36
  • Target version changed from Candidate to 3.0-alpha0
dumganhar 2013-08-23 04:36
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:22f909eb782e3a2fc3de6e43704d61c476f7c15a.

Atom PDF

Start date:2013-08-21
Due date:
% Done:


Target version:3.0-alpha0

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.