
27 Jul
2009
27 Jul
'09
3:37 p.m.
My own solution for scoping enums has been to enclose it in a namespace rather than a class, and import the name of the actual enum. The only disadvantage is that the namespace must have a different name than the enum; perhaps your solution is better. Of course, C++0x enum classes beat either option.