vfptr is NULL when iterator uses listener?
<p>Here is my problem:
HumanSpadesPlayer inherits from both SpadesClient and ViewEventListener (it implements the ViewEventListener).</p>

<p>Here is the problem:</p>

<pre><code>HumanSpadesClient::HumanSpadesClient( CardView* view )
    : m_view(view)
{
    if(m_view)
    {
        m_view-&gt;addListener(this);
    }
}
</code></pre>

<p>calling the addListener method results in actually adding NULL to it since that portion of HumanSpadesClient has not been constructed, thus this does not work.</p>

<p>Is there any other way than to do it externally by having the class that creates these objects call addListener?</p>

<p>Thanks</p>

<p>I mean that the compiler dynamically casts the HumanSpadesClient to a ViewListener and it results in NULL.</p>

<p>It does not add null put the _vfptr when I iterate is NULL, but not if I set it manually.</p>
