From 1547561747840492413
X-Google-Thread: f78e5,f6130266038a8c4d
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: nesotto@cs.auc.dk ("Thorsten Ottosen")
Newsgroups: comp.std.c++
Subject: Re: Private Methodes declared outside of the class
Date: Mon, 16 Aug 2004 20:38:10 GMT
Organization: SunSITE.dk - Supporting Open source
Lines: 29
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <41211964$0$73936$14726298@news.sunsite.dk>
References: <2oblfaF8nds3U1@uni-berlin.de> <_p6Uc.1281$g%5.16328@news2.e.nsc.no>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1092688700 24161 158.152.254.254 (16 Aug 2004 20:38:20 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 16 Aug 2004 20:38:20 +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=-1.4 required=5.2 tests=BAYES_00,MSGID_3_DOLLARS,
	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 i7GKcAdu021181;
	Tue, 17 Aug 2004 06:38:10 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Spam-Level: 
X-Delivered-To: std-c++@ucar.edu
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++
Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!news.zanker.org!news.amigo.co.uk!news.clara.net!wagner.news.clara.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
Xref: g2news1.google.com comp.std.c++:1748

""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.

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                       ]



