/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Fixed.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos value = other.value; } // Copy assignment operator overload Fixed& Fixed::operator=(Fixed const &other) { std::cout << "Copy assignment operator called" << std::endl; if (this != &other) this->value = other.getRawBits(); return (*this); } // Destructor Fixed::~Fixed() { std::cout << "Destructor called" << std::endl; } // getRawBits() int Fixed::getRawBits( void ) const { std::cout << "getRawBits member function called" << std::endl; return (this->value); } // setRawBits() void Fixed::setRawBits( int const raw ) { this->value = raw; }