Hello,
I am trying to implement a member function that will return a `ref@`object.
I got the basic function working, but I did not want to deal with reference counting in my code, so I added the auto handle to the object to make it: `ref@+`
However, when I try to register this method I get an error from Angelscript:
(0, 0) : ERR : Failed in call to function 'RegisterObjectMethod' with 'ScriptObjectHandle' and 'ref@+ get()' (Code: -10)
If I remove the auto handle it works fine. If I use a different type (i.e. a type that I have added), it also works fine.
Does anyone know what I'm doing wrong?
Cheers
Jarrett