title: How to convert char* to std::vector?
body: <p>I have a char* variable:</p>
  
  <pre><code>// char* buffer;
  // ...
  fread (buffer, 1, lSize, pFile);
  // ...
  </code></pre>
  
  <p>How can I convert it to std::vector? Casting will get me an error.</p>