From -3622990230768473575 X-Google-Thread: f78e5,51456c3eb8f9490e X-Google-Attributes: gidf78e5,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.hanau.net!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull From: hofmann@anvil-soft.com ("Matthias Hofmann") Newsgroups: comp.std.c++ Subject: Re: Copy Constructor Confusion! Date: Mon, 21 Aug 2006 15:07:10 GMT Lines: 32 Sender: mail2news@demon.net Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++) Message-ID: <4kthd2Fdi0ouU1@individual.net> References: <1155645873.296811.3890@74g2000cwt.googlegroups.com> <1155663179.843769.44420@b28g2000cwb.googlegroups.com> <4kh3o8Fc528lU1@individual.net> <1155753523.459377.147180@m79g2000cwm.googlegroups.com> <4kjo9uFcihf4U1@individual.net> <1155845943.564948.233640@75g2000cwc.googlegroups.com> NNTP-Posting-Host: news.news.demon.net X-Trace: news.demon.co.uk 1156172834 5512 158.152.254.254 (21 Aug 2006 15:07:14 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 21 Aug 2006 15:07:14 +0000 (UTC) X-Original-To: std-c++@mailman.ucar.edu X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Priority: 3 X-Orig-X-Trace: individual.net JnwN9Qb/molCMk1eaFr50QcjQT2b2T6JcLKwCx3m1lE/PMKT27 X-RFC2646: Format=Flowed; Response X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au X-MSMail-Priority: Normal X-Originating-IP: 130.133.1.2 X-Received: (from fjh@localhost) by mulga.csse.unimelb.edu.au (8.13.6+Sun/8.13.6/Submit) id k7LF7Asa007431; Tue, 22 Aug 2006 01:07:10 +1000 (EST) X-Path: comp-std-cpp-robomod!not-for-mail X-Delivered-To: std-c++@mailman.ucar.edu X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-Newsgroups: comp.std.c++ Xref: g2news2.google.com comp.std.c++:3392 ""Kristof Zelechovski"" schrieb im Newsbeitrag news:ec3l3a$239g$1@news2.ipartners.pl... >>> > . Except when forming a pointer to member (5.3.1), the access must be >>> > through a pointer to, reference to, or object of the derived class >>> > iteself (or any class derived from that class) (5.2.5). >>> >>> Yes, that's true. A protected member can be accessed only if those >>> conditions you mentioned are also met. >> >> And since they can never be met for the snippet in question ("X x = >> X();", if you remember), the statement 'If it appears inside a member >> of a derived class, "protected" should suffice.' is in fact false. >> > > If the precondition can never be met, the statement is trivially true. Why? -- Matthias Hofmann Anvil-Soft, CEO http://www.anvil-soft.com - The Creators of Toilet Tycoon http://www.anvil-soft.de - Die Macher des Klomanagers --- [ 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://www.comeaucomputing.com/csc/faq.html ]