This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: nested namespace and enum
- From: "Pavoori, Kiran" <kiran dot pavoori at polycom dot com>
- To: "'drow at mvista dot com'" <drow at mvista dot com>, "'gdb at sources dot redhat dot com'" <gdb at sources dot redhat dot com>
- Date: Mon, 14 Jul 2003 10:46:19 -0700
- Subject: RE: nested namespace and enum
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