title: Converting a C-string to a std::vector<byte> in an efficient way
body: <p>I want to convert a C-style string into a byte-vector.
  A working solution would be converting each character manually and pushing it on the vector. However, I'm not satisfied with this solution and want to find a more elegant way.</p>
  
  <p>One of my attempts was the following:</p>
  
  <pre><code>std::vector&lt;byte&gt; myVector;
  &amp;myVector[0] = (byte)"MyString";
  </code></pre>
  
  <p>which bugs and gets me an</p>
  
  <blockquote>
    <p>error C2106: '=': left operand must be l-value </p>
  </blockquote>
  
  <p>What is the correct way to do this?</p>