summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/post.h b/src/post.h
index f651d88d..a89ce3bc 100644
--- a/src/post.h
+++ b/src/post.h
@@ -205,6 +205,23 @@ public:
}
friend class xact_t;
+
+#if defined(HAVE_BOOST_SERIALIZATION)
+private:
+ /** Serialization. */
+
+ friend class boost::serialization::access;
+
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int /* version */) {
+ ar & boost::serialization::base_object<item_t>(*this);
+ ar & xact;
+ ar & account;
+ ar & amount;
+ ar & cost;
+ ar & assigned_amount;
+ }
+#endif // HAVE_BOOST_SERIALIZATION
};
} // namespace ledger