Re: Nested class doesn't obey member access rules
- From: "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 20:50:04 +0200
"Igor Tandetnik" wrote:
Here's quotation from 11.8/1 "Nested classes":
<quote>
The members of a nested class have no special access to members
of
an enclosing class
See DR45, whereby this paragraph is replaced with
"A nested class is a member and as such has the same access
rights as any other member."
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#45
Many compilers are tracking this DR. VC does since at least
VC7.1
Thanks for the prompt reply. It's good news. This fix makes much
more sense. Unfortunately, MSDN page is not updated even for most
recent compiler:
"Access Privileges and Nested Classes"
http://msdn2.microsoft.com/en-us/library/ee6hft63.aspx
Alex
.
- References:
- Nested class doesn't obey member access rules
- From: Alex Blekhman
- Re: Nested class doesn't obey member access rules
- From: Igor Tandetnik
- Nested class doesn't obey member access rules
- Prev by Date: Re: Nested class doesn't obey member access rules
- Next by Date: Re: Class Destroys itself straight away!
- Previous by thread: Re: Nested class doesn't obey member access rules
- Next by thread: Re: Nested class doesn't obey member access rules
- Index(es):
Relevant Pages
|