• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: Possible C++ optimizer problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Possible C++ optimizer problem
      • From: Steve Checkoway <email@hidden>
References: 
 >Possible C++ optimizer problem (From: David Dunham <email@hidden>)
 >Re: Possible C++ optimizer problem (From: Steve Checkoway <email@hidden>)
 >Re: Possible C++ optimizer problem (From: David Dunham <email@hidden>)
 >Re: Possible C++ optimizer problem (From: Steve Checkoway <email@hidden>)

  • Prev by Date: X Code Archives?
  • Next by Date: Re: X Code Archives?
  • Previous by thread: Re: Possible C++ optimizer problem
  • Next by thread: Re: Possible C++ optimizer problem
  • Index(es):
    • Date
    • Thread