Is qMetaTypeConstructHelper deprecated in Qt 5. I am trying to use
template <>
void *qMetaTypeConstructHelper<MyModule>(const MyModule *)
{
return new MyModule();
}
i get the following errors during compilation :
MyModule.cpp:17: error: C2143: syntax error : missing ‘;’ before ‘<’
MyModule.cpp:17: error: C2988: unrecognizable template declaration/definition
MyModule.cpp:17: error: C2059: syntax error : ‘<’
How to get this working ?
↧