public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "L.Suresh" <suresh@comodogroup.com>
To: gcc-help@gcc.gnu.org
Cc: artur@alice.phy.uct.ac.za
Subject: RE: using keyword problem
Date: Fri, 27 Aug 2004 12:27:00 -0000	[thread overview]
Message-ID: <1093608668.5336.103.camel@Ironwing> (raw)

The using-declaration is used to bring every declaration with a given
name into scope. Here when you say A::S, there is no namespace "A", it
is the name of the class.

Try the code below. 

class A
{
public:
    struct S
    {
        int x;
    };
};

int Method()
{
    A::S s;
    s.x = 1;
    return s.x;
};


Thanks,
L.Suresh

             reply	other threads:[~2004-08-27 12:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27 12:27 L.Suresh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-27 12:18 Artur Szostak
2004-08-27 15:03 ` Eljay Love-Jensen

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=1093608668.5336.103.camel@Ironwing \
    --to=suresh@comodogroup.com \
    --cc=artur@alice.phy.uct.ac.za \
    --cc=gcc-help@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).