|
|
Ian Collins <ian-news@xxxxxxxxxxx> writes:
> Pritam wrote:
>> Facing a little issue with gcc ( maybe all c compiler have behaves
>> this way for the problem)
>>
>> Got a function that takes in a enumerated type. Even if another
>> enumerated type is passed 'gcc' does not raise any warnings or error.
>> 'g++' generates a error msg for the same. Is there a way to turn on
>> enum type checks while passing to functions in 'gcc'.
>>
> That's a "feature" of C, corrected in C++!
>
> Enums aren't really types in C.
Are they not just ints?
|
|