From 716dedd48f5ee0d6f5640d4850ec7f273f5e91d9 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 4 Dec 2009 02:26:16 +0000 Subject: Fix build errors in test_store; resolves QPID-2229 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@887038 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/test_store.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpp/src/tests/test_store.cpp') diff --git a/cpp/src/tests/test_store.cpp b/cpp/src/tests/test_store.cpp index f2d3aa65a3..c675c6daa3 100644 --- a/cpp/src/tests/test_store.cpp +++ b/cpp/src/tests/test_store.cpp @@ -43,7 +43,6 @@ using namespace qpid; using namespace broker; using namespace std; -using namespace boost; using namespace qpid::sys; namespace qpid { @@ -60,9 +59,9 @@ struct TestStoreOptions : public Options { }; struct Completer : public Runnable { - intrusive_ptr message; + boost::intrusive_ptr message; int usecs; - Completer(intrusive_ptr m, int u) : message(m), usecs(u) {} + Completer(boost::intrusive_ptr m, int u) : message(m), usecs(u) {} void run() { qpid::sys::usleep(usecs); message->enqueueComplete(); @@ -82,7 +81,7 @@ class TestStore : public NullMessageStore { const boost::intrusive_ptr& msg, const PersistableQueue& ) { - string data = polymorphic_downcast(msg.get())->getFrames().getContent(); + string data = boost::polymorphic_downcast(msg.get())->getFrames().getContent(); // Check the message for special instructions. size_t i = string::npos; @@ -106,7 +105,7 @@ class TestStore : public NullMessageStore { } else if (strncmp(action.c_str(), ASYNC.c_str(), strlen(ASYNC.c_str())) == 0) { std::string delayStr(action.substr(ASYNC.size())); - int delay = lexical_cast(delayStr); + int delay = boost::lexical_cast(delayStr); threads.push_back(Thread(*new Completer(msg, delay))); } else { -- cgit v1.2.1