W
wenmang
Hi,
I encountered some legacy codes with multiple definitions for some
symbols in term of enum(global naemspace pollution). How can I enforce
the scope of an enum? e.g.,
enum MyEnum
{
OK
};
enum YourEnum
{
OK=1
};
If I only want my enum value for symbol OK in MyEnum scope, how can I
do it?
I encountered some legacy codes with multiple definitions for some
symbols in term of enum(global naemspace pollution). How can I enforce
the scope of an enum? e.g.,
enum MyEnum
{
OK
};
enum YourEnum
{
OK=1
};
If I only want my enum value for symbol OK in MyEnum scope, how can I
do it?