I found some old posts from 2010 that virtual inheritance isn't supported in AngelScript, but maybe currently an AngelScript support it? If yes please tell me how bind an virtual inheritance classes? I really need it to bind some 3rd party library (without sources so I can't modify it).
Currently when I do somethink like this:
class foo
{
public:
virtual void callMe() = 0;
};
class derived : public virtual foo
{
public:
virtual void callMe()
{
printf("info!\n");
}
};
...
eng->RegisterObjectMethod("derived", "void callMe()", asMETHOD(derived, callMe), asCALL_THISCALL);
I have following error:
'static_cast' : cannot convert from 'asSFuncPtr *' to 'asDWORD *'[/quote]
How can I solve it? I need a solution which work for both MSVC and GCC compilers.
Cheers,