• 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: dynamic cast problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >dynamic cast problem (From: mark <email@hidden>)

  • Prev by Date: Re: dynamic cast problem
  • Next by Date: What optimizations does -O really do?
  • Previous by thread: dynamic cast problem
  • Next by thread: Re: dynamic cast problem
  • Index(es):
    • Date
    • Thread