summaryrefslogtreecommitdiff
path: root/src/mask.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mask.h')
-rw-r--r--src/mask.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mask.h b/src/mask.h
index 065d06a2..011c6f61 100644
--- a/src/mask.h
+++ b/src/mask.h
@@ -94,6 +94,25 @@ public:
}
return true;
}
+
+#if defined(HAVE_BOOST_SERIALIZATION)
+private:
+ /** Serialization. */
+
+ friend class boost::serialization::access;
+
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int /* version */) {
+ string temp;
+ if (Archive::is_loading::value) {
+ ar & temp;
+ *this = temp;
+ } else {
+ temp = expr.str();
+ ar & temp;
+ }
+ }
+#endif // HAVE_BOOST_SERIALIZATION
};
inline std::ostream& operator<<(std::ostream& out, const mask_t& mask) {