[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with operator%
From: |
Mike Wahler |
Subject: |
Re: help with operator% |
Date: |
Fri, 21 Oct 2005 01:10:33 GMT |
"Greg Comeau" <comeau@panix.com> wrote in message
news:dj89bm$3ri$1@panix1.panix.com...
> In article <f6D5f.1445$mV4.1167@dukeread02>, GB <gb@invalid.invalid>
> 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
Re: help with operator%, Mike Wahler, 2005/10/19
Re: help with operator%, address@hidden, 2005/10/20