title: "" + something in C++
body: <p>I've been having really freaky stuff happening in my code. I believe I have tracked it down to the part labeled "here" (code is simplified, of course):</p>
  
  <pre><code>std::string func() {
      char c;
      // Do stuff that will assign to c
      return "" + c; // Here
  }
  </code></pre>
  
  <p>All sorts of stuff will happen when I try to <code>cout</code> the result of this function. I think I've even managed to get pieces of underlying C++ documentation, and many a <a href="http://en.wikipedia.org/wiki/Segmentation_fault">segmentation fault</a>. It's clear to me that this doesn't work in C++ (I've resorted to using <code>stringstream</code> to do conversions to <code>string</code> now), but I would like to know why. After using lots of C# for quite a while and no C++, this has caused me a lot of pain.</p>