nested namespace and enum

Pavoori, Kiran kiran.pavoori@polycom.com
Mon Jul 14 17:47:00 GMT 2003


Would like to hear an opinion on this declaration.

namespace N
{
class C 
{
    public:
        ~C(){}
        C() {}
        typedef enum 
        {
                EV_X,
                EV_Y, 
                EV_Z
        } Events;
};
}


Now looking at the above declaration I would access the enum EV_X as
follows:

N::C::EV_X

Is this an acceptable declaration?
Please comment when you get a chance, thank-you
Kiran



More information about the Gdb mailing list