What is the simplest way to convert a const char[] to a string in c++
<p>Is there a simple way of creating a std::string out of an const char[] ?</p>

<p>I mean something simpler then:</p>

<pre><code>std::stringstream stream;
stream &lt;&lt; const_char;

std::string string = stream.str();
</code></pre>
