diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h index 41297e02ae72bf81c39355b00db9a6d8955f50e2..0f38f470417b4ef80bf73f732c3513b6c0d0d085 100644 --- a/libcorpus2/tag.h +++ b/libcorpus2/tag.h @@ -148,6 +148,16 @@ public: */ bool operator==(const Tag& other) const; + /** + * Boost seralization support. Users must include appropriate boost headers. + */ + template<class Archive> + void serialize(Archive & ar,const unsigned int version) + { + ar & pos_; + ar & values_; + } + private: /// the POS id mask_t pos_;