openMSX
serialize_constr.hh
Go to the documentation of this file.
1#ifndef SERIALIZE_CONSTR_HH
2#define SERIALIZE_CONSTR_HH
3
4#include <tuple>
5
6namespace openmsx {
7
31template<typename T> struct SerializeConstructorArgs
32{
33 using type = std::tuple<>;
34 template<typename Archive>
35 void save(Archive& /*ar*/, const T& /*t*/) { }
36 template<typename Archive>
37 type load(Archive& /*ar*/, unsigned /*version*/) { return {}; }
38};
39
40} // namespace openmsx
41
42#endif
This file implemented 3 utility functions:
Definition Autofire.cc:9
Serialize (local) constructor arguments.
type load(Archive &, unsigned)
void save(Archive &, const T &)