This is a modified version that uses a MessageFactory singleton and a std::map to store constructors. It works great so far but comments are welcome.
I am still trying to find a way to avoid creating constructors for each message class. I know is possible because the original library can do it. Unfortunately I only have the header files so no idea on the implementation details.
#include
#include
#include
#include
#include