You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2008/06/21 00:48:36 UTC
svn commit: r670089 - /incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h
Author: astitcher
Date: Fri Jun 20 15:48:36 2008
New Revision: 670089
URL: http://svn.apache.org/viewvc?rev=670089&view=rev
Log:
QPID-1069: Patch from Steve Huston: Build with Boost 1.35
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h
Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h?rev=670089&r1=670088&r2=670089&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h Fri Jun 20 15:48:36 2008
@@ -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 @@
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 @@
/** 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