title: assignment operator not working
body: <p>What does this code:</p>
  
  <pre><code>MyClass t;
  t = MyClass(100); 
  </code></pre>
  
  <p>I have used something like that in my code and I get compilation error <code>error: no match for ‘operator=’</code>. Me I interpret it like in Java but apparently it's different. </p>
  
  <p>I have the assignment operator declared like this:</p>
  
  <pre><code>MyClass&amp; operator=(Myclass&amp; other)
  </code></pre>
  
  <p>When I change my code to this it works:</p>
  
  <pre><code>MyClass temp(100);
  t = temp;
  </code></pre>
  
  <p>I can't do this:</p>
  
  <pre><code>Myclass t(100)
  </code></pre>