added test using own class as argument
[libt2n] / example-codegen / foo.hxx
diff --git a/example-codegen/foo.hxx b/example-codegen/foo.hxx
new file mode 100644 (file)
index 0000000..49d0197
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef FOO_HXX
+#define FOO_HXX
+
+#include <boost/serialization/version.hpp>
+
+struct Foo
+{
+  int i,j;
+
+  friend class boost::serialization::access;
+  template<class Archive>
+  void serialize(Archive & ar, const unsigned int /* version */)
+  {
+    ar & BOOST_SERIALIZATION_NVP(i);
+    ar & BOOST_SERIALIZATION_NVP(j);
+  }
+};
+
+BOOST_CLASS_VERSION(Foo, 1)
+
+#endif