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 
6 namespace openmsx {
7 
31 template<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 std::make_tuple(); }
38 };
39 
40 } // namespace openmsx
41 
42 #endif
void save(Archive &, const T &)
type load(Archive &, unsigned)
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
Serialize (local) constructor arguments.