Closed tesla9 closed 8 years ago
I assume you wanted a function that takes an int
and returns a LuaUserdata< TestClass<int> >
In this case your function signature is wrong. Instead of
LuaUserdata< TestClass<int>(int) >
it should be
LuaUserdata< TestClass<int> >(int)
(note the triangular brackets' placements)
Thank you very much David, I had to be tired ;)
hi, maybe I understand something incorrectly, but I am unable to create LuaUserdata from template class.
Here is the example: class:
code:
and error: error: no instance of function template "CreateFunction" matches the argument list argument types are: (lambda ->LuaUserdata<TestClass>)
object type is: Lua
Is there any other way to do that? When TestClass is not a template everything works perfect.