Implement a simple event and delegate system in C++ with member function pointers

Event and delegate are a great duo. Together they would help you eliminating the headache of scrolling through branch statements, improving your code’s readability. It is so helpful that Java’s core library has an implementation for Observer and Observable. C# even takes a step further, as there is an event keyword baked right into the language itself. In this post I’m gonna make a simple event and delegate system in C++.

Continue reading Implement a simple event and delegate system in C++ with member function pointers