🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Ref add-on cannot cast to compatible type

Started by
1 comment, last by iraxef 9 years, 10 months ago

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().

Advertisement


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

Exactly :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Do you think it would make sense to update http://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_ref.html with a TODO as well?

This topic is closed to new replies.

Advertisement