C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C4341
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 3) C4341
 
     signed value out of range for enum constant
 
     A given enumerated constant exceeded the limit for an int. The
     value of the illegal constant is undefined.
 
     Make sure that the given constants resolve to integers between
     -32,768 and +32,767 (signed) or 0 and +65,535 (unsigned).
 
     The following example generates this warning:
 
          enum ELEMENTS
          {
             Hydrogen = 1,
             Helium,
             Lithium,
             Beryllium,
             Impossibillium = 500000
          } ;
                                    -♦-