no matching function for call to Ticker::Ticker(void (\\&)(), int)
时间: 2024-05-10 07:20:35 浏览: 133
It looks like there is an issue with the constructor for the Ticker class. The error message suggests that the constructor is missing a parameter of type "void ()".
To fix this error, you need to check the definition of the Ticker class and make sure that the constructor takes the correct parameters. For example, if the Ticker class is defined as follows:
```
class Ticker {
public:
Ticker(void (*callback)());
// other class members
};
```
Then you need to make sure that you are calling the constructor with a function pointer that takes no arguments and returns void:
```
void myCallback() {
// do something
}
Ticker ticker(myCallback);
```
If you are still having trouble resolving this error, please provide more information about your code and the specific error message that you are seeing.
阅读全文