added test using own class as argument
[libt2n] / example-codegen / foo.hxx
1 #ifndef FOO_HXX
2 #define FOO_HXX
3
4 #include <boost/serialization/version.hpp>
5
6 struct Foo
7 {
8   int i,j;
9
10   friend class boost::serialization::access;
11   template<class Archive>
12   void serialize(Archive & ar, const unsigned int /* version */)
13   {
14     ar & BOOST_SERIALIZATION_NVP(i);
15     ar & BOOST_SERIALIZATION_NVP(j);
16   }
17 };
18
19 BOOST_CLASS_VERSION(Foo, 1)
20
21 #endif