From -2628588847808508161
X-Google-Thread: f78e5,f6130266038a8c4d
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!news.glorb.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: weyns@online.no ("Conrad Weyns")
Newsgroups: comp.std.c++
Subject: Re: Private Methodes declared outside of the class
Date: Wed, 18 Aug 2004 05:32:11 GMT
Lines: 51
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <KmgUc.1340$g%5.17394@news2.e.nsc.no>
References: <2oblfaF8nds3U1@uni-berlin.de> <_p6Uc.1281$g%5.16328@news2.e.nsc.no> <41211964$0$73936$14726298@news.sunsite.dk>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1092807135 6710 158.152.254.254 (18 Aug 2004 05:32:15 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 18 Aug 2004 05:32:15 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Priority: 3
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=-4.2 required=5.2 tests=BAYES_00,PRIORITY_NO_NAME 
	autolearn=no version=2.60-mulga_r1
X-MSMail-Priority: Normal
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i7I5WBs6008229;
	Wed, 18 Aug 2004 15:32:11 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-NNTP-Posting-Date: Tue, 17 Aug 2004 07:05:46 MEST
X-Spam-Level: 
X-Delivered-To: std-c++@ucar.edu
X-Spamscanner: mailbox5.ucsd.edu  (v1.4 May 20 2004 13:55:33, 0.8/5.0 2.63)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-Newsgroups: comp.std.c++
X-MailScanner: PASSED (v1.2.8 67905 i7H55mZE079817 mailbox5.ucsd.edu)
Xref: g2news1.google.com comp.std.c++:1778


""Thorsten Ottosen"" <nesotto@cs.auc.dk> wrote in message
news:41211964$0$73936$14726298@news.sunsite.dk...
> ""Conrad Weyns"" <weyns@online.no> wrote in message
news:_p6Uc.1281$g%5.16328@news2.e.nsc.no...
> |
> | "Ben Strasser" <ben04_01@freenet.de> wrote in message
> | news:2oblfaF8nds3U1@uni-berlin.de...
> | > Hello,
> | >
> | > I was wondering why you can not declare private methods outside of the
> | > class declaration?
>
> because it's not needed.
>
> | As Bob said, the Pimpl idiom will help you out.
> | But you can often get away with mere static functions.
> | All you need is to declare friendship:
>
> Actually friendship is not even needed. just add functions with
appropriate arguments
> in the implementation file.

I just tried this and I stand corrected. I am surprised.
I allways thought that declaring a Impl class this way was identical to a
nested class.
Evidently, it isn't and I must admit I don't understand why. A nested class
would need friendship.
Thanks for putting me right!
Regards,
Conrad Weyns

>
> br
>
> Thorsten
>
>
> ---
> [ 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.jamesd.demon.co.uk/csc/faq.html                       ]
>

---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



