Mike Wahler wrote:
> "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?

No, an enum is not an integral type - although an enum may convert to
an integer value.

Greg

_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to