Could someone help with the correct syntax? I tried something like

Code:
class myclass {

multimap<int, void(*)()> mm_fn;
...

void afunction();
...

void anotherfunction(int anint){
       mm_fn.insert(pair<int,void(*)()>(anint,afunction));
}

}
and the compiler does not like it. Thanks!