Ну или способ сделать тоже как-то по другому.
Из EWAVR_CompilerReference.pdf:
Цитата
POINTER TO MEMBER FUNCTIONS
A pointer to a member function can only contain a default function pointer, or a function
pointer that can implicitly be casted to a default function pointer. To use a pointer to a
member function, make sure that all functions that should be pointed to reside in the
default memory or a memory contained in the default memory.
Example
class X
{
public:
__nearfunc void F();
};
void (__nearfunc X::*PMF)(void) = &X::F;
A pointer to a member function can only contain a default function pointer, or a function
pointer that can implicitly be casted to a default function pointer. To use a pointer to a
member function, make sure that all functions that should be pointed to reside in the
default memory or a memory contained in the default memory.
Example
class X
{
public:
__nearfunc void F();
};
void (__nearfunc X::*PMF)(void) = &X::F;
Но пока что-т не получается использовать (или это пример не о том?).
Спасибо.