Categories
Mastering Development

No operator “>>” matches these operands operand types are: std::istream >> double

For my project I’m trying to create a free function for a complex number class. It is defined in the cpp file. The function is an overloaded input streaming operator but I keep getting the error No operator ">>" matches these operands operand types are: std::istream >> double on the lines in >> z.real(); in […]