X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Ffoo.hxx;fp=example-codegen%2Ffoo.hxx;h=49d0197ca269c1c081a31a6de72e182c14341ae2;hp=0000000000000000000000000000000000000000;hb=63291e4f84b127b479bee0710860e5fdbfbd5b11;hpb=e5bc4700c8dd5a178d4c40c163a4107901698b6f diff --git a/example-codegen/foo.hxx b/example-codegen/foo.hxx new file mode 100644 index 0000000..49d0197 --- /dev/null +++ b/example-codegen/foo.hxx @@ -0,0 +1,21 @@ +#ifndef FOO_HXX +#define FOO_HXX + +#include + +struct Foo +{ + int i,j; + + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int /* version */) + { + ar & BOOST_SERIALIZATION_NVP(i); + ar & BOOST_SERIALIZATION_NVP(j); + } +}; + +BOOST_CLASS_VERSION(Foo, 1) + +#endif