"Greg Comeau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, GB <[EMAIL PROTECTED]> > wrote: >>Al-Burak wrote: >>> protected: float amount; >>: >>> return tmp = lhs.amount % rhs.amount; >>: >>> What am I doing wrong? >> >>You are attempting to use the '%' operator on floats. The operator can >>be used only on integral types. > > ... and enum's.
Is not 'enum' an integral type? -Mike _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
