I have the following code in my cocos2d C++ application, but the code is not compiling:
std::string MyBasketTimer::getImageByType(MyBasket* basket) {
std::string retVal=NULL;
if(getBasketType()==1){
retVal= new std::string("count_bg.png");
}
else if(getBasketType()==2){
retVal= new std::string("count_bg.png");
}
return retVal;
}
The error is get is
invalid conversion from 'std::string* {aka std::basic_string<char>*}' to 'char' [-fpermissive]
What am I doing wrong?