A minimalist event emitter in C++