summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-08-28 13:22:10 -0500
committerJohn Wiegley <johnw@newartisans.com>2014-08-28 13:22:10 -0500
commitc1598b7de27c5ba5fafc8a5efb1db18fe54d3070 (patch)
tree2e6a8e37f7ed02b66dd17ad5abe3238c7bcb665f /src/post.h
parent948f5fea2818df2e4793557505914bbc859fc193 (diff)
parent6508e39b692777ddd7204870326c8fd2a2fc6402 (diff)
downloadfork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.tar.gz
fork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.tar.bz2
fork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.zip
Merge pull request #319 from joegallo/master
Compilation errors with boost 1.56 (a second try)
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/post.h b/src/post.h
index c2f77b32..d04be266 100644
--- a/src/post.h
+++ b/src/post.h
@@ -205,7 +205,11 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
+#if BOOST_VERSION >= 105600
+ return xdata_ != NULL;
+#else
return xdata_;
+#endif
}
void clear_xdata() {
xdata_ = none;