operator= fixed
This commit is contained in:
@@ -31,7 +31,7 @@ RPN& RPN::operator=(const RPN &other)
|
|||||||
{
|
{
|
||||||
if (this != &other)
|
if (this != &other)
|
||||||
{
|
{
|
||||||
// Copy attributes here
|
this->numbers = other.numbers;
|
||||||
}
|
}
|
||||||
// std::cout << "RPN copy assignment operator called" << std::endl;
|
// std::cout << "RPN copy assignment operator called" << std::endl;
|
||||||
return (*this);
|
return (*this);
|
||||||
|
|||||||
Reference in New Issue
Block a user