assignment operator in c++
<p>let's assume I have some class A and derived from it B:
I want to write <code>operator=</code> for B (let's assume that I have <code>operator=</code> in my A class)
right way to do this:</p>

<pre><code>B&amp; B::operator=(const B&amp; rhs)
{
if(this == &amp;rhs) return *this;
((A&amp;) *this) = rhs; //&lt;-question
//some other options
return *this
}
</code></pre>

<p>what is the difference if I write </p>

<pre><code>((A) *this) = rhs;
</code></pre>

<p>thanks in advance</p>
