From 6154cd1ff67e2dd1ddb91d20e099f01978a1205f Mon Sep 17 00:00:00 2001
From: ilor <ilor@vger.(none)>
Date: Thu, 24 Mar 2011 17:33:51 +0100
Subject: [PATCH] boost::serialization helper in Corpus2::Tag

---
 libcorpus2/tag.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h
index 41297e0..0f38f47 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_;
-- 
GitLab