typedef bool (*pGetPin) (char pinnum);
typedef struct {
pGetPin getPinFoo;
char portPIN;
unsigned int keyCounter;
KEYS key;
} KEY_INFO;
bool GET_PINE (char pin)
{
return (PINE & (1 << pin)) ? true : false;
}
//
Понятное дело ругается Error[Pe144]: a value of type "bool (__nearfunc __version_3 Keyboard::*)(char)" cannot be used to initialize an entity of type "bool (*)(char)" D:\work\remote\Ver1_0\keyb.cpp 17
Как задатать pGetPin как тип ф-ции - member ?