Pointer to base class and private inheritance
<p>The following simple example will produce a compiler error, since I accidently use private inheritance:</p>

<p><em>main.cpp:21: error: ‘A’ is an inaccessible base of ‘B’</em></p>

<pre><code>class A
{


};

class B : /*ups forgot that -&gt; public*/ A
{


};

int main(int , char *[])
{
    A* test = new B;

    return 0;
}
</code></pre>

<p>Could you help me and explain what exactly is inaccessible in the base class and why it is needed in the conversion from <code>B*</code> to <code>A*</code>?</p>
