I have a type registered as so:
ScriptEngine->RegisterObjectType("Object",0,asOBJ_REF|asOBJ_NOCOUNT);
Then in my script I have this code:
array<Object@> ret = {};
const Object@ x = @game.objects[i];
ret.insertLast(x);
Which gives the error:
ai\9.as(162, 13): ERROR : No matching signatures to 'array::insertLast(const Object@&)'
ai\9.as(162, 13): INFORMATION : Candidates are:
ai\9.as(162, 13): INFORMATION : void array::insertLast(Object@const&in)
What does this mean? What's the difference between const Object@ and Object@const?
I'm sorry I don't know offhand what version of Angelscript I'm using, because someone else compiled it for me a few years ago.