c++ - "Error C2661 no overloaded function takes 5 arguments" When constructor clearly passes 6 arguments, which are required -


i have function named menubutton constructor as: (where dosomething defined typedef void*(dosomething)();)

inline menubutton(float x, float y, float w, float h, int tid, dosomething* onclick) {     this->x = x;     this->y = y;     this->w = w;     this->h = h;     this->tid = tid;     this->onclick = onclick; } 

and using constructor here:

menubutton* play = new menubutton(100, 100, 300, 50, this->gettex("play_button")->tid, &this->startload); 

and getting following error?

'menubutton::menubutton': no overloaded function takes 5 arguments 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -