"Нет подходящей функции преобразования из "std::is_function" в "void(*)()" завершается
Код: Выделить всё
void Byte::addMenu(const char* description, std::is_function f) {
if (count < MAXCOUNT) {
this->mi[count].func = f;
strcpy_s(this->mi[count].descript, description);
count++;
}
}
Код: Выделить всё
void Byte::addMenu(const char* description,void(Byte::*f)(int)).
Подробнее здесь: https://stackoverflow.com/questions/781 ... n-function
Мобильная версия