It seems that when I try to export a function that uses a constant pointer to an instance type the type cannot be resolved. Simple example:
DECLARE_INSTANCE_TYPE_NAME(MyType)
void MyFunc(const MyType* x) {
//...
}
SQClassDef<MyType>(_T("MyType")).
staticFunc(&MyFunc, _T("MyFunc"));
When I try to compile that, it complains that "none of the n overloads could convert all the argument types", and then points to "const MyType*" as the failed type. Looking at the list of available types above it, though, we do have:
MyType &
MyType *
const MyType &
It would seem that "const MyType *" would be the logical progression from this. Is there something special that needs to be done to expose this type, or is this a bug in squirrel?