title: cannot convert parameter 1 from 'char *' to 'uint8_t *'
body: <pre><code>void OnReceived(std::shared_ptr&lt;uint8_t&gt; buffer, int len) {
  .........
  }
  
  int main(){
  std::vector&lt;char&gt; buffer(1000);
  OnReceived((std::shared_ptr&lt;uint8_t&gt;)buffer.data(),rcvlen);
  }
  </code></pre>
  
  <p>am trying to cast it but i cant i dont know why!!!</p>
  
  <pre><code>Error   1   error C2664: 'std::tr1::_Ptr_base&lt;_Ty&gt;::_Reset0' : cannot convert parameter 1 from 'char *' to 'uint8_t *'  c:\program files\microsoft visual studio 10.0\vc\include\memory 1705
  </code></pre>
  
  <p>so how can i convert it?</p>