From: Daniel Jacobowitz <drow@mvista.com>
To: "Pavoori, Kiran" <kiran.pavoori@polycom.com>
Cc: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: Re: nested namespace and enum
Date: Tue, 15 Jul 2003 03:39:00 -0000 [thread overview]
Message-ID: <20030715033918.GA19528@nevyn.them.org> (raw)
In-Reply-To: <5314B62255397440B12213B31CB2E9F113CD32@corpmail02>
On Mon, Jul 14, 2003 at 10:46:19AM -0700, Pavoori, Kiran wrote:
> 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
This does not work in GDB right now, and will not for at least another
release. It may also require some compiler changes. Your C++ is right
though.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2003-07-15 3:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-14 17:47 Pavoori, Kiran
2003-07-15 3:39 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030715033918.GA19528@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=kiran.pavoori@polycom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox