We could ensure that object added to `RefPtr` is an `Ref*`. You could do it like `cocos2d::Vector<T>`, please check those codes.