Bonjour,
j'ai le problème suivant :
eEtat1 est un enum déclaré de la sorte :eEtat1 = (pstFormule->acFormule[0] != '\0' ? F_NoM : 0) ;
eEtat1 |= (pstPrestation->usPresence & PRESENCE_AMC ? NoF_M : 0);
Toutefois, j'obtiens les erreurs suivantes :enum { NoF_NoM = 0, F_NoM, NoF_M, F_M } eEtat1;
merci pour toute aideerror C2440: '=' : cannot convert from 'int' to ''
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
error C2676: binary '|=' : '' does not define this operator or a conversion to a type acceptable to the predefined operator
Partager