怎样在 Luabind (Lua、C++) 中使用 boost::any 类型?

在 C++ 中,我有一个返回 boost::any 类型的函数,然后在 Lua 中通过 Luabind 调用该函数时,会出现错误“crep && you are trying to use an unregistered type”。

我使用的是:lua 5.1.5、luabind 0.8

点赞