I want to process commands in a chat program I've started working on. The way I'm planning to do this is by having every command it's own function.
I wanted to check if the userInput equevalent is to some other string by putting it together in a map.
std::map<std::string, void*> _Functions;
But when I try to insert functions in it it is saying my arguments do not match the argument list.
I have done some research and came to the conclusion that the problem is that the functions I want to use are part of the CommandManager class. Futhermore does the map accept normal voids.