error C2556:'std::ostream &operator <<(std::ostream &,const RectanglePyramid &)' : overloaded function differs only by return type from 'const RectanglePyramid operator <<(std::ostream &,const RectanglePyramid &)'
error C2373 'operator <<' redefintion; different type modifers
If anyone has any ideas that would be great. I have spent an hour trying to figure out why, first I thought it could be the const after the friend so I took it out and got other errors but these ones disappeared