Sign in to follow this  
Jason Goepel

(closed) Runtime array<T>

Recommended Posts

The CScriptArray class requires a pointer to asIObjectType upon construction.  The asIObjectType pointer passed into the constructor appears to be the type of the Array itself, not of the array's subtype.  If I only have the subtype and I wish to generate an array of that subtype, how do I generate the appropriate asIObjectType object?


In my case I have a registered object, which I will call "MyType".  I want to instantiate an array of type "array<MyType>" at runtime from my C++ code.  "array<MyType>" will most likely not already be registered, so 


will likely return nullptr.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this