This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question regarding c++ constructors
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Mile Davidovic <mile dot davidovic at micronasnit dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 21 Feb 2005 12:17:46 +0000
- Subject: Re: Question regarding c++ constructors
- References: <200502211159.j1LBxj6N017630@krt.neobee.net>
On Mon, Feb 21, 2005 at 12:45:51PM +0100, Mile Davidovic wrote:
> Hello all
>
> I have stupid question regarding constructors and destructors in c++.
> After compilation there are two assembler functions (__ZN4testC2Ev,
> __ZN4testC1Ev)
> that represent constructor, same is for destructors (__ZN4testD2Ev,
> __ZN4testD1Ev).
> Functions are completely the same.
> What is the reason for such compilere behaviour?
I think this is the same question as answered here:
http://gcc.gnu.org/ml/gcc-help/2004-11/msg00160.html
I thought there was something about this on one of the
http://gcc.gnu.org/gcc-3.X/changes.html pages (for some X)
But I can't find it.
Hope that helps,
jon
--
"Fanaticism consists in redoubling your efforts when you have forgotten
your aims."
- George Santayana