The code for the fragment is as follows. It is impossible to understand why I am getting this error.
void SipObj::check_each_field() { map <std::string, sip_field_getter>::iterator msg; string str; char name[20]; bool res = false; sscanf(get_payload(), "%s %*s", name); LOGINFO(lc()) << "INVITE:" << name; str = name; msg = sip_field_map.find(str); if (msg != sip_field_map.end()) { sip_field_getter sip_field = msg->second; res = (this).*sip_field(); } } typedef bool (SipObj::*sip_field_getter)(); static map <std::string, sip_field_getter> sip_field_map; sip_field_getter is a place holder for function names
source share