Re: Re: Possible C++ optimizer problem
Re: Re: Possible C++ optimizer problem
- Subject: Re: Re: Possible C++ optimizer problem
- From: "Clark Cox" <email@hidden>
- Date: Thu, 20 Jul 2006 15:52:41 -0400
On 7/19/06, Steve Checkoway <email@hidden> wrote:
subclass of string. (I believe that subclassing the std classes is
not allowed. Certainly you cannot add new data members since they
might not be destroyed because string doesn't have a virtual dtor.)
Just a minor nit to pick: there is nothing wrong with deriving from a
class without a virtual destructor (even adding data members as you
go) as long as you don't delete them polymorphically (i.e. you only
allocate instances of them as automatic variables, as non-pointer
instance variables in other classes, etc.) Or you're sure that the
type of the pointer passed to operator delete is pointer to the
most-derived type.
--
Clark S. Cox III
email@hidden
My CV/Resume:
http://homepage.mac.com/clarkcox3/files/Resume.pdf
http://homepage.mac.com/clarkcox3/files/Resume.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden