Library 3

bugfix
This commit is contained in:
Alessandro Ferro 2021-05-11 07:00:36 +02:00
parent 97407c2a31
commit a062709dc4
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ BinaryTreeLnk<Data>& BinaryTreeLnk<Data>::operator=(BinaryTreeLnk<Data>&& tree)
template <typename Data>
bool BinaryTreeLnk<Data>::operator==(const BinaryTreeLnk<Data>& tree) const noexcept{
if(size == tree.size){
return (Root() == tree.Root());
if(size == 0) return true;
else return (Root() == tree.Root());
}else{
return false;
}