C++11 Signals and Slots
As the post has close to no content, it might be of some interest to link to an actual working implementation in modern C++ of signals and slots with the observer pattern: libsigc++
https://github.com/libsigcplusplus/libsigcplusplus
There's also an article on wikipedia on libsigc++.