From 52ab3087da04c4faf8908690c3a07b4e99237c32 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Wed, 9 Sep 2009 19:45:26 +0000 Subject: Adjust to new location of state_saver in Boost 1.40; fixes QPID-2090 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@813092 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/client/Dispatcher.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/client/Dispatcher.cpp b/qpid/cpp/src/qpid/client/Dispatcher.cpp index 43cbf3aa4d..a715c623bf 100644 --- a/qpid/cpp/src/qpid/client/Dispatcher.cpp +++ b/qpid/cpp/src/qpid/client/Dispatcher.cpp @@ -29,7 +29,14 @@ #include "qpid/client/Message.h" #include "qpid/client/MessageImpl.h" -#include +#include +#if (BOOST_VERSION >= 104000) +# include + using boost::serialization::state_saver; +#else +# include + using boost::state_saver; +#endif /* BOOST_VERSION */ using qpid::framing::FrameSet; using qpid::framing::MessageTransferBody; @@ -65,7 +72,7 @@ void Dispatcher::run() Mutex::ScopedLock l(lock); if (running) throw Exception("Dispatcher is already running."); - boost::state_saver reset(running); // Reset to false on exit. + state_saver reset(running); // Reset to false on exit. running = true; try { while (!queue->isClosed()) { -- cgit v1.2.1