summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJoe Gallo <joegallo@gmail.com>2014-08-28 11:04:55 -0400
committerJoe Gallo <joegallo@gmail.com>2014-08-28 11:04:55 -0400
commitd5592ea1e325131d4a7abf5e98f67fcb5cf22287 (patch)
tree23fb9715c255d297001d259adfee1e629467bdf6 /src/post.h
parent948f5fea2818df2e4793557505914bbc859fc193 (diff)
#if guards for boost 1.56 compatibility
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;