#ifndef mismatch_H #define mismatch_H #include struct size_mismatch : std::exception { char const* what() throw() { return "size mismatch"; } }; #endif