Can call generic functions from Lua in C++