Event0 e;
e += FunctionPtr0<void>(someFunction);
e();
That little bit of code just set up an event, adding a pointer to the function someFunction, and then executed all functions that had been registered with the Event e. It may not be as pretty as I had envisioned it a couple of weeks ago, but it works. At the end of the day, that's what makes me happy.
No comments:
Post a Comment