Remove the constructor/destructor messages in ex03
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 13:14:03 +0000 (15:14 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 13:14:03 +0000 (15:14 +0200)
ex03/Fixed.cpp

index 1d6acbe91ed0cabb76ddd2a2c776dbbbd8419d2e..362baa19e7a922b403fd19db19a5b2e60d5a51e7 100644 (file)
@@ -4,32 +4,26 @@
 
 Fixed::Fixed(): m_num(0)
 {
-       std::cout << "Default constructor called\n";
 }
 
 Fixed::Fixed(const int init): m_num(init << point_pos)
 {
-       std::cout << "Int constructor called\n";
 }
 Fixed::Fixed(const float init): m_num(roundf(init * (1 << point_pos)))
 {
-       std::cout << "Float constructor called\n";
 }
 
 Fixed::Fixed(const Fixed &other)
 {
-       std::cout << "Copy constructor called\n";
        *this = other;
 }
 
 Fixed::~Fixed()
 {
-       std::cout << "Destructor called\n";
 }
 
 Fixed  &Fixed::operator=(const Fixed &other)
 {
-       std::cout << "Copy assignment operator called\n";
        if (this == &other)
                return (*this);
        m_num = other.getRawBits();