title: How to cast a pointer in C++
body: <pre><code>void foo(void **Pointer);
  
  int main ()
  {
      int *IntPtr;
  
      foo(&amp;((void*)IntPtr));
  }
  </code></pre>
  
  <p>Why do I get an error?</p>
  
  <pre><code>error: lvalue required as unary ‘&amp;’ operand
  </code></pre>
  
  <p>Thanks</p>