c++ queue function pointers