r = engine->RegisterObjectType("map<class K, class V>", 0, asOBJ_REF | asOBJ_GC | asOBJ_TEMPLATE); assert( r >= 0 );
Templates with more than one parameter
Is it possible to have a template with more than one parameter. For example "map<class K, class V>". When I do I get "Expected '>'". Edit: I have another unrelated question How can I tell the type of an object when using ?∈ as my functions argument. I know how to tell from primitive types, but I want to be able to also get more complex objects. [Edited by - klusark on February 5, 2010 1:24:44 PM]
Templates with multiple arguments is not yet supported, but it is on my to-do list.
Take a look at the CScriptAny class in the add-on directory. It should give you most of the answers on the variable argument type.
From the type id you can determine whether the type is a primitive, script class, registered object type, etc. Once you know that you can obtain the asIObjectType interface for object types, which will allow you to determine more details on that object.
Take a look at the CScriptAny class in the add-on directory. It should give you most of the answers on the variable argument type.
From the type id you can determine whether the type is a primitive, script class, registered object type, etc. Once you know that you can obtain the asIObjectType interface for object types, which will allow you to determine more details on that object.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement