Here is a non-intrusive adapter class I’ve crafted that allows one to pop scene with transition without having to change any of the cocos2d sources: http://bit.ly/cocos-pop-transition-hpp
Instead of calling cocos2d::Director::getInstance()->popScene() just call:
Note that there is no typical 2nd argument taking the scene for the transition, one simply passes all the arguments they would pass to the transition’s create method except for the 2nd argument carrying the scene.