Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #8764
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Two nested classes are tied together. |
| Date | 2011-08-13 12:53 +1200 |
| Message-ID | <9am08uFhn3U3@mid.individual.net> (permalink) |
| References | <04e11031-43ec-4fe3-a5e3-3f314332e350@p5g2000vbl.googlegroups.com> <Xns9F3F66EDD3056myfirstnameosapriee@216.196.109.131> <7039a747-66e3-42f6-98b9-bf9bc543e80c@y16g2000yqh.googlegroups.com> <j242cf$hqn$1@dont-email.me> <1a6b00ea-e49c-41f6-a357-23b261156530@p19g2000yqa.googlegroups.com> |
On 08/13/11 12:32 PM, Nephi Immortal wrote: > On Aug 12, 3:27 pm, red floyd<no.spam.h...@its.invalid> wrote: >> >> Any identifier with a leading underscore followed by an upper-case >> letter is reserved to the implementation in ANY scope. This means >> that you may not use such identifiers (like _Proxy) for your own >> purposes. > > You refer underscore with name is implementation. I think you refer > an example -- _Vector_const_iterator and _Vector_iterator. The client > can’t use either _Vector_const_iterator or _Vector_iterator. He needs > to use vector instead because vector is inherited from > _Vector_const_iterator and _Vector_iterator. > > I think it is ok to use these name like _Data and _Proxy because they > are inaccessible to the client when they are protected in this parent > class. What parts of "reserved to the implementation" and "you may not use" weren't clear? -- Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-11 16:23 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-12 02:07 -0500
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-12 08:00 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-14 22:47 -0500
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-15 10:11 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-15 13:38 -0500
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 12:16 -0700
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-12 13:27 -0700
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 17:21 -0700
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 17:32 -0700
Re: Two nested classes are tied together. Ian Collins <ian-news@hotmail.com> - 2011-08-13 12:53 +1200
Re: Two nested classes are tied together. TJorgenson <tjorgenson@infinera.com> - 2011-08-15 17:38 -0700
csiph-web