From 08f65eeadc288ecde4b8fb281e477958c8ae7cd5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 29 Mar 2012 15:35:20 -0500 Subject: Allow serialization to be enabled again --- src/xact.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/xact.h') diff --git a/src/xact.h b/src/xact.h index df82258d..ce00242e 100644 --- a/src/xact.h +++ b/src/xact.h @@ -168,6 +168,21 @@ public: bool _overwrite_existing) : tag_data(_tag_data), overwrite_existing(_overwrite_existing), apply_to_post(NULL) {} + +#if defined(HAVE_BOOST_SERIALIZATION) +private: + /** Serialization. */ + deferred_tag_data_t() : apply_to_post(NULL) {} + + friend class boost::serialization::access; + + template + void serialize(Archive& ar, const unsigned int /* version */) { + ar & tag_data; + ar & overwrite_existing; + ar & apply_to_post; + } +#endif // HAVE_BOOST_SERIALIZATION }; typedef std::list deferred_notes_list; -- cgit v1.2.3