summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-06-20 22:48:36 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-06-20 22:48:36 +0000
commit55095a8da7c0f4e86bb629fd87e122a214641c18 (patch)
tree4742c65e98321b9ff4971077b302573757a5ee92 /qpid/cpp
parentd843260b5ca7b8945144c27e584777c9b6da276a (diff)
downloadqpid-python-55095a8da7c0f4e86bb629fd87e122a214641c18.tar.gz
QPID-1069: Patch from Steve Huston: Build with Boost 1.35
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@670089 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/framing/Blob.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/framing/Blob.h b/qpid/cpp/src/qpid/framing/Blob.h
index 8b304ba708..7cf4cefc3b 100644
--- a/qpid/cpp/src/qpid/framing/Blob.h
+++ b/qpid/cpp/src/qpid/framing/Blob.h
@@ -27,6 +27,7 @@
#include <boost/utility/typed_in_place_factory.hpp>
#include <boost/type_traits/is_base_and_derived.hpp>
#include <boost/utility/enable_if.hpp>
+#include <boost/version.hpp>
#include <new>
@@ -39,7 +40,8 @@ namespace framing {
using boost::in_place;
using boost::typed_in_place_factory_base;
-/** 0-arg typed_in_place_factory, missing in boost. */
+/** 0-arg typed_in_place_factory, missing in pre-1.35 boost. */
+#if (BOOST_VERSION < 103500)
template <class T>
struct typed_in_place_factory0 : public typed_in_place_factory_base {
typedef T value_type ;
@@ -49,6 +51,7 @@ struct typed_in_place_factory0 : public typed_in_place_factory_base {
/** 0-arg in_place<T>() function, missing from boost. */
template<class T>
typed_in_place_factory0<T> in_place() { return typed_in_place_factory0<T>(); }
+#endif
template <class T, class R=void>
struct EnableInPlace