Re: warning: C++ constructors and destructors
Re: warning: C++ constructors and destructors
- Subject: Re: warning: C++ constructors and destructors
- From: Tim Hart <email@hidden>
- Date: Wed, 15 Feb 2006 15:09:39 -0600
Simon,
Declare your instance variables to C++ classes as pointers to instances instead. Then, in your init method, call 'new' as appropriate. Be sure to call 'free' in your '-dealloc' method. That will quiet the warnings.
Tim
On Wednesday, February 15, 2006, at 03:03PM, Simon Brée <email@hidden> wrote:
>Hi All,
>
>I've got this warnings when compiling :
>
>/Users/simon/Projets/Magnéto/SBObject/SBAudioFile.h:30: warning: type
>`CAStreamBasicDescription' has a user-defined constructor
>/Users/simon/Projets/Magnéto/SBObject/SBAudioFile.h:30: warning: C++
>constructors and destructors will not be invoked for Objective-C fields
>
>My application works anyway, but does anyone know how to solve it?
>
>Thanks,
>
>Simon
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Cocoa-dev mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden