a C++11 serializer