scope to operator<<
Posted on 2006-11-24
i have a base class of cRectangle2 and a class that inheritance it cBox
in cRectangle2 i have
friend ostream & operator<<(ostream &,const cRectangle2 &)
now in cBox i also have operator<< overloaded but i dont know how to call the cRectangle operator... i can get it to work with a static_cast but that makes an extra constructor that i should not have... how do i call the cRectangle2 operator inside the cBox operator?