summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/post.h b/src/post.h
index 3fa67e56..0fb45e90 100644
--- a/src/post.h
+++ b/src/post.h
@@ -205,7 +205,11 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
- return xdata_ != boost::none;
+#if BOOST_VERSION >= 105600
+ return xdata_ != NULL;
+#else
+ return xdata_;
+#endif
}
void clear_xdata() {
xdata_ = none;