Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #4541
| From | Qi <no@no.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Is it standard that inner class inherits the outer class' friendship? |
| Date | 2011-05-01 12:57 +0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ipipb4$ntp$1@speranza.aioe.org> (permalink) |
| References | <ipgn1u$qf9$1@speranza.aioe.org> <41dd0896-2e1b-4c2f-8d05-9b4b74e3c787@p13g2000yqh.googlegroups.com> <iph578$qf9$2@speranza.aioe.org> <daa72e8b-bf71-43a8-bb10-c5c66621c637@z7g2000prh.googlegroups.com> |
On 2011-5-1 3:37, Saeed Amrollahi wrote: > As I mentioned in section 11.3 at paragraph 2, there is wording: > "Declaring a class to be a friend implies that the names of > private and protected members from the class granting friendship > can be accessed in the base-specifiers and member declarations of > the befriended class." > In your case: > If you declare class Graph a friend of class Node, the private > names of class Node (the class granting friendship) can be accessed > in nested class cmp of the befriending class (Graph). Thanks, that explained my problem. -- WQ
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Is it standard that inner class inherits the outer class' friendship? Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-04-30 06:58 -0700
Re: Is it standard that inner class inherits the outer class' friendship? Qi <no@no.com> - 2011-04-30 22:08 +0800
Re: Is it standard that inner class inherits the outer class' friendship? Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-04-30 12:37 -0700
Re: Is it standard that inner class inherits the outer class' friendship? Qi <no@no.com> - 2011-05-01 12:57 +0800
csiph-web