This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
stable STL implementation
- From: Vijay Patil <vpatil at knightsindia dot co dot in>
- To: 'Phil Adams' <phil_adams at us dot ibm dot com>, Vijay Patil <vpatil at knightsindia dot co dot in>
- Cc: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 30 Nov 2002 10:54:25 +0530
- Subject: stable STL implementation
hello all
which is the most stable implementation of STL?? , is it Dinkum,
SGI, STLport, Roguewave, or somethnig else
i am working on platform independent product, we have used STL every where,
currently we support Win2000(VC++) , Linux(gcc2.95.3), Solaris(gcc2.95.3) ,
but some times i get very strange behavior of STL on Win2000, and same thing
works fine on Linux and Solaris
thanks
Vijay
-----Original Message-----
From: Phil Adams [mailto:phil_adams@us.ibm.com]
Sent: Saturday, November 30, 2002 9:16 AM
To: Vijay Patil
Cc: 'libstdc++@gcc.gnu.org'
Subject: Re: STL::list::clear , erase help
If your list was of type list<CKMaskApp>, then your destructors would be
called. The problem is that your list is a list of pointers, not a list of
objects...
Phil Adams
WebSphere Development
IBM Austin, TX
phil_adams@us.ibm.com
(512) 838-6702 (tie 678)
Vijay Patil <vpatil@knightsindia.co.in>
11/29/2002 04:40 AM
To: "'libstdc++@gcc.gnu.org'" <libstdc++@gcc.gnu.org>
cc:
Subject: STL::list::clear , erase help
Hello
i have a list pointers defined like shown below
list<CKMaskApp*> m_MaskAppList;
i have added some CKMaskApp pointers to m_MaskAppList list
if i say m_MaskAppList->clear(); , will it call the destructor of CKMaskApp
objects, i saw the MSDN documents it says that N destructors are called, but
destructors are never called, I'm working with MS VC with CL compiler on Win
NT
is it STL list bug or some think else?,
what is the standard behavior of list::clear or erase function
thanks
Vijay