In article <[EMAIL PROTECTED]>, Mike Wahler <[EMAIL PROTECTED]> 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?
Not in C++, but can be _promoted_ to one. -- Greg Comeau / Celebrating 20 years of Comeauity! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it? _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
