summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/post.h b/src/post.h
index 1e5fc569..5f22fa3c 100644
--- a/src/post.h
+++ b/src/post.h
@@ -205,11 +205,7 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
-#if BOOST_VERSION >= 105600
- return xdata_ != NULL;
-#else
- return xdata_;
-#endif
+ return static_cast<bool>(xdata_);
}
void clear_xdata() {
xdata_ = none;
@@ -255,24 +251,6 @@ public:
}
}
};
-
-#if 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 & amount_expr;
- ar & cost;
- ar & assigned_amount;
- }
-#endif // HAVE_BOOST_SERIALIZATION
};
class journal_t;