|
Hi,
I’m having trouble exporting typedefs on templates taking another typedefed type as template argument. For example:
typedef Vector2 VecType; // Simple typedef typedef std::vector< VecType > Path; // Real type of Path should be std::vector< Vector2 >
void test( VecType vec, Path path ); // Test function
When converting the code to lua-wrapper code, the function test will take a Vector2 and a std::vector< VecType > as parameters. The first parameter becomes correct, but the second one doesn’t (should be std::vector< Vector2 >). So, when calling the function in Lua, sending along a std::vector< Vector2 >, it will fail telling me the type should be std::vector< VecType >. Is this a bug in tolua++? Is it possible to solve?
Thanks in advance.
Christian |