Problems with TransitionFade

While making GoToMainMenuScene() function, I’ve faced problem with TransitionFade::create() function. Here is my function:

void GoToMainMenuScene(Ref *pSender)
{
	auto scene = MainMenuScene::createScene();
	Director::getInstance()->replaceScene(TransitionFade::create(TRANSITION_TIME, scene ));
}

Where TRANSITION_TIME is defined in this way: #define TRANSITION_TIME 0.5
Eclipse says, that no matching function for call to ‘cocos2d::TransitionFade::create(double, MainMenuScene*&)’
What am I supposed to do with this?

Thanks a lot for your help!

What is your code for MainMenuScene::createScene()? Does it definitely return a Scene* object?

Yes, it is.

What happens if you change your define to 0.5f?

It works, but another errors appear.