title: Cannot initialize a parameter of type "const unsigned char *" with an rvalue of type 'value_type *' (aka char*)
body: <p>I get an error "Cannot initialize a parameter of type "const unsigned char *" with an rvalue of type 'value_type <em>' (aka char</em>)" in the following lines. </p>
  
  <pre><code>image-&gt;initWithImageData(&amp;(buffer-&gt;front()),buffer-&gt;size());
  </code></pre>
  
  <p>buffer is of type <code>std::vector&lt;char&gt; *buffer</code></p>
  
  <p>and the above error in on <code>&amp;(buffer-&gt;front()</code> does anybody know how to fix it?</p>