Re: Inline symbols visibility
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