Re: dynamic cast problem
Re: dynamic cast problem
- Subject: Re: dynamic cast problem
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 25 May 2007 09:02:37 +0200
Am 25.05.2007 um 06:26 schrieb mark:
I am not a C++ expert, but I can't see why this won't cast.
What am I doing wrong?
As you already found out, you need to cast pointers (or references,
which throws at illegal casts).
In that context, you might want to check your naming conventions.
Right now you have
- C++ references ( CMyClass& objectRef .. )
- CFTypeRef like CFStringRef ( Internally probably an typedef struct
CFString * ) - even if you are not using Carbon, you might some day
- and your xxxRef which apparently have yet another design paradima.
You might find out when you didn't touch your project some months
that ambiguity makes it harder to re-understand.
HTH,
Tom_E
_______________________________________________
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