title: How to convert unsigned char[] to std::vector<unsigned char>
body: <p>I am trying to pass this to another part of my project that requires it be a vector   </p>
  
  <pre><code>unsigned char vch[65];
  
  unsigned int size() const { return GetLen(vch[0]); }
  const unsigned char* begin() const { return vch; }
  const unsigned char* end() const { return vch + size(); 
  
  
  std::vector&lt;unsigned char&gt; Raw() const
  {
          return (vch, vch + size());
  }
  </code></pre>
  
  <p>I get the error </p>
  
  <pre><code> could not convert '(const unsigned char*)(&amp;((const CPubKey*)this)-
  CPubKey::vch)' from 'const unsigned char*' to 'std::vector&lt;unsigned char*&gt;'
  </code></pre>