M
mikron30
Hi,
Is it legal to create two enums with the same value?
typedef enum {
a,
b=a,
c
} save_value_enum;
It passed compilation in Visual Studio 6 and gcc 2.95. But I am not
sure if it is ANSI. I didn't find any saying (for or against) in
Stroustrup.
Thanks,
Miki Zilbershtein
Is it legal to create two enums with the same value?
typedef enum {
a,
b=a,
c
} save_value_enum;
It passed compilation in Visual Studio 6 and gcc 2.95. But I am not
sure if it is ANSI. I didn't find any saying (for or against) in
Stroustrup.
Thanks,
Miki Zilbershtein