• Advertisement
Sign in to follow this  

[Error witj Inheritance]No matching signatures to

This topic is 1719 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got Eror(]No matching signatures to ... )with this code.

why it's not working?

class IInt{
...
virtual void regFunctions(asIScriptEngine*_engine)=0;
...
};

class Core:public Iint{
...
virtual void regFunctions(asIScriptEngine*_engine){
        Warning("regFunctions");
        int r;

        //
        //!Logging
        //
        r = _engine->RegisterGlobalFunction("void LogPrintf(const string val)", asFUNCTION(ScriptLogPrintf), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Warning(const string val)", asFUNCTION(ScriptWarning), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Debug(const string val)", asFUNCTION(ScriptDebug), asCALL_CDECL); assert( r >= 0 );
        r = _engine->RegisterGlobalFunction("void Error(const string val, bool val)", asFUNCTION(ScriptError), asCALL_CDECL); assert( r >= 0 );
       };
};

class Engine:public Core{
...
virtual void regFunctions(asIScriptEngine*_engine){Core::regFunctions(this->mASEngine)}
}
};
Edited by nickgastovski

Share this post


Link to post
Share on other sites
Advertisement

I think you need to provide a little more information. I see nothing wrong with what little you've given. 

 

Post the full error message that the compiler gives, and we may be able to help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement