This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question regarding c++ constructors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]