Simple C++ event emitter