OK, guys, I have 2 maps of function pointers, and im trying to populate them, however they are having problems deciding which function to use. Im looking for a way to resolve it.
Code:
...
//2 unique maps of strings and function pointers
std::map<std::string, void (*)(std::string,Object1*)> func_map1;
std::map<std::string, void (*)(std::string,Object2*)> func_map2;
...
//2 clearly unique overloaded functions
myfunc1(std::string input, Object1* moreinput) { ...blah... }
myfunc1(std::string input, Object2* moreinput) { ...blah... }
...
//2 assignment statements that should return
// different overloads of myfunc1
func_map1["myfunc1"]=*myfunc1;
func_map2["myfunc1"]=*myfunc1;
...
Im looking for something i can do to the lines like func_map1["myfunc1"]=*myfunc1; to help the compiler resolve the error im getting: "error C2244: 'myfunc1' : unable to resolve function overload".
Thanks for your time!