From d5592ea1e325131d4a7abf5e98f67fcb5cf22287 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Thu, 28 Aug 2014 11:04:55 -0400 Subject: #if guards for boost 1.56 compatibility --- src/post.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/post.h') 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_; bool has_xdata() const { +#if BOOST_VERSION >= 105600 + return xdata_ != NULL; +#else return xdata_; +#endif } void clear_xdata() { xdata_ = none; -- cgit v1.2.3