I tried this:
ostringstream myString;
float x;
string s;
if(x)
myString<<x;
else
myString<<s;
return myString.str();
But it doesn't work. My goal is to concatenate into myString, a float and a string, with a space between them, before testing if one of them is NULL.