d02 ex02 operator < ok

This commit is contained in:
hugogogo
2022-02-15 00:31:59 +01:00
parent b08663e74e
commit c9a833bc00
6 changed files with 60 additions and 31 deletions

View File

@@ -125,8 +125,8 @@ float Fixed::toFloat( void ) const {
* took here : https://github.com/pgomez-a/42_CPP_Piscine/blob/master/cpp02/ex01/Fixed.cpp
*/
std::ostream & operator<<(std::ostream & out, Fixed const & fixed)
std::ostream & operator<<(std::ostream & o, Fixed const & rhs)
{
out << fixed.toFloat();
return (out);
o << rhs.toFloat();
return (o);
}