title: sprintf to std::string directly?
body: <p>I'm interested (for various reasons) format using sprintf with the result in a <code>std::string</code> object. The most syntactically direct way I came up with is:</p>
  
  <pre><code>char* buf;
  sprintf(buf, ...);
  std::string s(buf);
  </code></pre>
  
  <p>Any other ideas?</p>