I am using chibios with c++ compiling but I have some problem in function callback and here is my code:
Code: Select all
class firstclass{
firstclass (palcallback_t cb);
}
class secandclass{
secandclass();
void butt_cb(void *arg);
firstclass fun(butt_cb);
}
I don't have error if i put the function static ,but i don't want to do that .
when I have tried to write
Code: Select all
firstclass fun(std::bind(&secandclass::butt_cb));
i failed
asd.