GCCについて part9
■ このスレッドは過去ログ倉庫に格納されています
0074デフォルトの名無しさん
2009/08/04(火) 20:56:33> unsigned integer type. The choice of type is implementation-defined,108) but shall be
> capable of representing the values of all the members of the enumeration.
意訳) enum の型は処理系定義だよ、ただしメンバの値はすべて表現できなければならない
なので、メンバに負の値がなければ、処理系によっては unsigned を選ぶかもしれない
unsigned になった場合は e = -1 は e = (unsigned) -1 のことだから、
なんというか、まぁ、仕方ないんじゃないか
■ このスレッドは過去ログ倉庫に格納されています