title: Overloaded == is not working for binary tree
body: <pre><code>bool Tree::operator==(const Tree &amp;that) const {
      return Node::is_equal(this-&gt;getRoot(), that.getRoot());
  }
  
  bool Tree::operator!=(const Tree &amp;that) const {
      return !Node::is_equal(this-&gt;getRoot(), that.getRoot());
  }
  
  
  int main(){
      Tree *t = new Tree();
      const Tree *t2 = new Tree();
      cout &lt;&lt; (t == t2) &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  <p>The overloaded == function is not being called and I am not sure why? Instead it is just comparing the addresses in memory.</p>