title: How can I concatenate float with string?
body: <p>I tried this:</p>
  
  <pre><code>ostringstream myString;
  float x;
  string s;
  if(x)
    myString&lt;&lt;x;
  else
    myString&lt;&lt;s;
  return myString.str();
  </code></pre>
  
  <p>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.</p>