I have a callback mechanism, the classes involved are:
class App { void onEvent(const MyEvent& event); void onEvent(const MyOtherEvent& event
You are going to want to do
boost::function g = boost::bind(&App::OnEvent, this, _1);
You should be able to do g(event); with that
I am not quite sure what you are trying to accomplish here, but that should solve one of your problems for now.