• Advertisement
Sign in to follow this  

Ref add-on cannot cast to compatible type

This topic is 1255 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I have a ref and I want to cast<> it to a usable type to work with, I can only successfully cast<> to the type that was assigned to the ref and not necessarily something within the class hierarchy of what was assigned to ref. That is, if I stored a handle to an application-registered derived class, casting to the base class fails.

 

UPDATE: I see there's a TODO in CScriptHandle::Cast().

Edited by iraxef

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement