How to handle events?
From the article:
Event subscriptions have a downside: someone has to unsubscribe. Usual approach is to make sure it happens when the subscibtion is no longer needed.
But, can we do it automatically, in a way that is easy to use and extend?
Let's see how it can be done in C++...