From -5263677031644215198
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8113d2b4a1062c22,start
X-Google-Attributes: gidf78e5,public
From: firstian@nospam.bellatlantic.net (Joe Chan)
Subject: using declarations in derived class
Date: 2000/02/29
Message-ID: <1e6kpfp.8y76n5dxrieiN%firstian@nospam.bellatlantic.net>#1/1
X-Deja-AN: 590937442
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 951760263 mail2news:1913 mail2news mail2news.demon.co.uk
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
User-Agent: MacSOUP/2.4.2
NNTP-Posting-Date: Fri, 25 Feb 2000 19:49:15 EST
Newsgroups: comp.std.c++

Hi all,

I have a question about using declarations. In the good old days before
using declarations, there is such a thing called access declarations
that can be used in a derived class to adjust access to base class
names. In ARM, the rule states that access declarations cannot be used
to restrict access to a member that is accessible in the base class.
Does this rule still apply to using declarations? I looked in the
standard and couldn't find the section that discuss it. If this rule no
longer applies, what is the rationale for it, since client code can
always cast the derived class ptr to a base class ptr and access the
member.

-- 
Joe Chan

Remove "nospam" to get my address.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




