creating a new instance of a function?
ok, this kinda follows on my previous post. (i got basic user function calls executing, as well as user created functions being processed and executed) however i need to know how to create a new instance of a function. example.
Code:
void bob(std::string unused_dont_ask_why)
{
std::cout << "blah";
}
could i do something like this:
Code:
void (*)(string) the_func_pointer = new(bob);
how would i create a function pointer to bob such that it would have a unique address?
thanks guys,