#include <map>
using namespace std;
class zlo
{
public:
void Event1()
{
cout<<"aaaA";
}
};
int main()
{
typedef void (zlo::*Event)();
map<String,Event> commands;
commands["1"] = &zlo::Event1;
Event my_ptr = commands["1"];
my_ptr();
return 0;
}
Error ktory dostej przy probie kompilacji:
[BCC32 Error] File3.cpp(27): E2314 Call of nonfunction