From: James Youngman Newsgroups: gnu.gcc.help,comp.os.os2.programmer.misc,comp.os.msdos.djgpp Subject: Re: C++ constructor problem solved!! Read how, it might come in useful in your future programs! Date: 20 Jan 1998 15:52:18 +0000 Organization: VG Gas Analysis Systems Lines: 11 Sender: james AT XENON Message-ID: References: <34C2817A DOT 5547BE86 AT alcyone DOT com> NNTP-Posting-Host: uriel.vggas.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >>>>> "Claus" == Claus Fischer writes: Claus> In reply to the previous thread, I posted that explicitely Claus> calling constructors is (to my knowledge) NOT possible. I Claus> might be wrong, but I think the standard requires a temporary Claus> object to be created. At least ARM says so. If you have Claus> better knowledge, please mail me. IIRC explicitly calling the constructor on a region of memory is OK in the circumstances where the constructor hasn't elready been called (i.e. you haven't used new or an auto or static instance).