#define SYNC_DATA_CB list<string> (*syncData)(void)
I want to have in my class a member (static or not is not matter) that will hold the reference to the function pointer.
I tried to declare like this, but didnt compiled:
SyncProcess{
public:
SyncProcess(SYNC_DATA_CB);
static SYNC_DATA_CB sync_cb_;
}
I think what you might be looking for is a typedef instead.