CVS commit by luis_pedro: Change the generated C++ from class X { public: enum { one, two...}; }; to class X { public: enum type { one, two ...}; }; so you can do X::type t = X::one; (as advertised on core-devel) M +1 -1 kconfig_compiler.cpp 1.54 --- kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #1.53:1.54 @@ -946,5 +946,5 @@ int main( int argc, char **argv ) h << " {" << endl; h << " public:" << endl; - h << " enum { " << values.join( ", " ) << ", COUNT };" << endl; + h << " enum type { " << values.join( ", " ) << ", COUNT };" << endl; h << " };" << endl; }