[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: RE: CXX-DEV: facing strange problem with initialisation of
From: "S G Ganesh" <sgganesh () india ! hp ! com>
Date: 2004-10-28 6:12:39
Message-ID: 000201c4bcb3$743b55b0$b0614c0f () asiapacific ! hpqcorp ! net
[Download RAW message or body]
>> So the question is when should the destructors of the array
>> member objects be called? As they are part of the static array shouldn't
>> they be called only at the end of the program??
Yes, for static const arrays, the end of the program.
>>
>> Result:
>> C::C
>> C::C
>> C::C
>> C::~C //!!Destructor Called!!
>> C::~C //!!Destructor Called!!
>> C::~C //!!Destructor Called!!
>> Exit foo
>> Terminate main
>> C::~C //!!Destructor Called Again!!
>> C::~C //!!Destructor Called Again!!
>> C::~C //!!Destructor Called Again!!
Please contact the response center and file a defect report for the same.
-Ganesh
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic