title: Invalid conversion from '`A**`' to '`void**`
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  class A
  {
      public:
          A(int x){ a = x;}
          ~A();
      private:
          int a;
  };
  
  int main()
  {
      A* a = new A(10);
      void** p;
      p = &amp;a;
      return 0;
  }
  </code></pre>
  
  <p>After compiling with <strong>g++ (GCC) 4.1.2 20080704</strong> , I am getting following error :</p>
  
  <blockquote>
    <p>test.cpp: In function '<code>int main()</code>':<br>
    test.cpp:17: error: invalid conversion from '<code>A**</code>' to '<code>void**</code>'</p>
  </blockquote>