char* to std::string
<p>I have a Character Array (char* pData) in C++, what i want to do is to copy some data (from pData) in std::string. The code looks like this:</p>

<pre><code>std::string sSomeData(pData+8);//I want to copy all data starting from index 8 till end
</code></pre>

<p>The problem is that when above statement executes the string contains nothing in it. 
I guess that my pData is not terminated with '\0' thats why its not working.</p>

<p>Regards,
Jame.</p>
