Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi all. I am having trouble attaching my object/method to FunctionPointer. I passed the two objects msExt and cfExt to the exeFunc class. Compilation error: no instance of overloaded function "mbed::FunctionPointer::attach" matches the argument list. That error points to code:_p.attach(_cfExt, _cfExt.checkConfigForFirstStart());
I do have a basic understanding of the meaning to that error(so I think). I have tried a few edits to that line, but I still arrive at compile errors. Is what I am attempting to accomplish not going to work and that I should create a separate function inside the exeFunc class then attach that?
main.cpp code:
exeFunc.h code:
exeFunc.cpp code exert: