• 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: Inline symbols visibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inline symbols visibility


  • Subject: Re: Inline symbols visibility
  • From: Guillaume Billard <email@hidden>
  • Date: Thu, 8 Apr 2010 15:06:16 +0200

Le 8 avr. 2010 à 12:14, Andreas Grosam a écrit :

> Is it a bug in the compiler?  I would say, yes. At least, the current behavior is pretty unfortunate.
>
> The workaround is to declare virtual inline functions explicitly visible, as you did.

Thank you for this very detailed explanation, I know where to look next time it happens and I don't remember the hows and whys! :)

> A similar subtle issue is with exceptions and RTTI in cases where you deal with several DSOs. Ensure that all classes (and base classes) which may be thrown in exceptions or classes which are arguments in a dynamic_cast are visible.

I haven't experienced the problem with exceptions yet, but we're used to thinking about this problem when dynamic casts fail between two perfectly related classes.

It seems like quite a bit of work, but if we want to take further advantage of this feature, inside any class that we made visible, we should mark "hidden" any symbol that has no use outside of the class' DSO, right?

Guillaume



 _______________________________________________
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: 
 >Inline symbols visibility (From: Guillaume Billard <email@hidden>)
 >Re: Inline symbols visibility (From: Andreas Grosam <email@hidden>)
 >Re: Inline symbols visibility (From: Guillaume Billard <email@hidden>)
 >Re: Inline symbols visibility (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Documentation Problem with XCode
  • Next by Date: Re: Documentation Problem with XCode
  • Previous by thread: Re: Inline symbols visibility
  • Next by thread: Stack overflow detection/Stack use over time
  • Index(es):
    • Date
    • Thread