Re: Question regarding c++ constructors

2005-03-01 Thread Mike Stump
On Feb 21, 2005, at 3:45 AM, Mile Davidovic wrote: Functions are completely the same. What is the reason for such compilere behaviour? Just lack of code in the compiler to do better, see http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00354.html for some of the details and starting point, should you

Re: Question regarding c++ constructors

2005-02-21 Thread Jonathan Wakely
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 (__ZN

Question regarding c++ constructors

2005-02-21 Thread Mile Davidovic
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 r