We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
To use Hybrid (retain/release with SmartPtr) in cocos2d-x v3.0
To use Hybrid (retain/release with SmartPtr) in cocos2d-x v3.0
Refactor #2516 [Rejected]
Status: | Rejected | |
---|---|---|
Start date: | 2013-08-09 | |
Priority: | High | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | 3.0-alpha0 |
The current
retain/release/autorelease
model has many issues as described hereAlso, as described in that thread, the proposed alternative for v3.0 is to migrate to a hybrid approach:
retain/release
withoutautorelease
createXXX
andclone
) should return an SmartPtr. The SmartPtr will replace theautorelease
.Since this task is huge, subtasks will be added.