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*/) const {}
36 template<typename Archive>
37 type load(Archive& /*ar*/, unsigned /*version*/) const { return {}; }
38};
39
40} // namespace openmsx
41
42#endif
This file implemented 3 utility functions:
Definition Autofire.cc:11
Serialize (local) constructor arguments.
type load(Archive &, unsigned) const
void save(Archive &, const T &) const