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::tuple<>(); }
38 };
39 
40 } // namespace openmsx
41 
42 #endif
openmsx::SerializeConstructorArgs::load
type load(Archive &, unsigned)
Definition: serialize_constr.hh:37
openmsx::SerializeConstructorArgs::type
std::tuple<> type
Definition: serialize_constr.hh:33
openmsx::SerializeConstructorArgs::save
void save(Archive &, const T &)
Definition: serialize_constr.hh:35
openmsx::SerializeConstructorArgs
Serialize (local) constructor arguments.
Definition: serialize_constr.hh:32
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5