Re: C++ RTTI/dynamic_cast across share module boundaries
Re: C++ RTTI/dynamic_cast across share module boundaries
- Subject: Re: C++ RTTI/dynamic_cast across share module boundaries
- From: Marshall Clow <email@hidden>
- Date: Tue, 19 Jan 2010 08:40:35 -0800
On Jan 19, 2010, at 8:27 AM, Mads Paulin wrote: Hi, I have hit what seems to be a very common problem when creating a plugin-based application utilizing the C++ dynamic_casting operator to down-cast a pointer in a dynamically loaded module. As described in numerous places (e.g. here: http://lists.apple.com/archives/xcode-users/2006/Mar/msg00119.html) many other developers have experienced this since GCC compares type_info's by address instead of by comparing the name() strings, a pointer of class A in the main application does not dynamic_cast to a class A pointer in a loaded module.
-- Marshall
|
_______________________________________________
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