title: Passing a void* by reference
body: <p>Why can't I pass a <code>void*</code> by reference? The compiler allows me to declare a function with the following signature:</p>
  
  <pre><code>static inline void FreeAndNull(void*&amp; item)
  </code></pre>
  
  <p>But when I try to call it, I get the following error:</p>
  
  <pre><code>Error   1   error C2664: 'FreeAndNull' : cannot convert parameter 1 from 'uint8_t *' to 'void *&amp;'
  </code></pre>
  
  <p>Casting it to <code>void*</code> doesn't work either</p>
  
  <p>Also, are there any workarounds?</p>