Projects > cpp > Issues > Bug #3464

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

Create Issue on Github

EventCustom shouldn't use std::hash to generate unique ID

Bug #3464 [Closed]
dumganhar 2013-12-20 11:41 . Updated almost 3 years ago

It may generate the same hash value.
In this case, std::unordered_map<ListenerID, T>, ListenerID should not be size_t, it should be string.
std::unordered_map internally will deal with hash collisions.

Fixed at

zhangxm 2013-12-30 10:06

It is fixed, right?
Please paste the patch link.

dumganhar 2014-01-02 13:13

Yep, it was fixed. I will find out the PR URL.

dumganhar 2014-01-02 13:17
  • Description updated (diff)
  • Status changed from New to Closed

Atom PDF

Start date:2013-12-20
Due date:
% Done:


Target version:3.0-beta

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