Article View: de.comp.lang.c++
Article #1637Q: gcc 2.7.1: Aufruf einer Konstruktormethode aus einer anderen
From: Watson
Date: Tue, 13 Feb 1996 15:46
Date: Tue, 13 Feb 1996 15:46
27 lines
1015 bytes
1015 bytes
Hallo,
wie kann ich ich eine Konstruktormethode aus
einer anderen Konstruktormethode aufrufen,
ohne dass gleich ein neues Objekt instanziiert
wird?
Beispiel:
class C {
C() {
...
C(tmpnam(NULL)); // das ist falsch,
// so weit bin ich schon :-)
...
}
C(char *string) {
...
}
}
Antwort bitte - auch - als PM, Danke,
--
* Greetinx from Watson (sayegh@fokus.gmd.de)
http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
signal(SIGSEGV,SIG_IGN);
Technical Details
Message-ID:
<3120B25C.2650@fokus.gmd.de>Path:
arc1-ca.pugleaf.net!stern.fokus.gmd.de!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news From: Watson <sayegh@fokus.gmd.de> Newsgroups: de.comp.lang.c++ Subject: Q: gcc 2.7.1: Aufruf einer Konstruktormethode aus einer anderen Date: Tue, 13 Feb 1996 16:46:36 +0100 Organization: GMD FOKUS - Research Institute for Open Communication Systems Message-ID: <3120B25C.2650@fokus.gmd.de> NNTP-Posting-Host: pollux.fokus.gmd.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)