Page 1 of 1

OgreAny with inherited class

Posted: Tue Dec 11, 2012 12:50 pm
by boyamer
Hi Developers,
Lets say i'm using Ogre Any on Texture, when i call Any::get() i'm getting exception because Textures is not same type of RenderSystem implementation texture.
I think the check would be with something from std::type_traits or maybe is_base_of (http://www.cplusplus.com/reference/type ... s_base_of/).

Amer

Re: OgreAny with inherited class

Posted: Tue Dec 11, 2012 3:13 pm
by Klaim
If I understand correctly, the check would have to be on runtime so it would be a comparison of typeid() values.