event dispatcher library in c++11