summaryrefslogtreecommitdiff
path: root/cpp/src/tests/MessageBuilderTest.cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-02-02 22:12:15 +0000
committerStephen D. Huston <shuston@apache.org>2009-02-02 22:12:15 +0000
commit7f984e6ad683db84b3abe08009120d95a6366633 (patch)
tree70a11eb811c6c1cb20d489b8b227a4ff757cd029 /cpp/src/tests/MessageBuilderTest.cpp
parentc39405557bb172efe1eb75753bbfb00616f45268 (diff)
downloadqpid-python-7f984e6ad683db84b3abe08009120d95a6366633.tar.gz
Explicitly reference boost namespace to avoid clashes on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@740124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessageBuilderTest.cpp')
-rw-r--r--cpp/src/tests/MessageBuilderTest.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/tests/MessageBuilderTest.cpp b/cpp/src/tests/MessageBuilderTest.cpp
index a183742832..54646dcde6 100644
--- a/cpp/src/tests/MessageBuilderTest.cpp
+++ b/cpp/src/tests/MessageBuilderTest.cpp
@@ -27,7 +27,6 @@
#include "unit_test.h"
#include <list>
-using namespace boost;
using namespace qpid::broker;
using namespace qpid::framing;
using namespace qpid::sys;
@@ -37,7 +36,7 @@ class MockMessageStore : public NullMessageStore
enum Op {STAGE=1, APPEND=2};
uint64_t id;
- intrusive_ptr<PersistableMessage> expectedMsg;
+ boost::intrusive_ptr<PersistableMessage> expectedMsg;
string expectedData;
std::list<Op> ops;
@@ -63,18 +62,18 @@ class MockMessageStore : public NullMessageStore
ops.push_back(APPEND);
}
- void stage(const intrusive_ptr<PersistableMessage>& msg)
+ void stage(const boost::intrusive_ptr<PersistableMessage>& msg)
{
checkExpectation(STAGE);
BOOST_CHECK_EQUAL(expectedMsg, msg);
msg->setPersistenceId(++id);
}
- void appendContent(const intrusive_ptr<const PersistableMessage>& msg,
+ void appendContent(const boost::intrusive_ptr<const PersistableMessage>& msg,
const string& data)
{
checkExpectation(APPEND);
- BOOST_CHECK_EQUAL(static_pointer_cast<const PersistableMessage>(expectedMsg), msg);
+ BOOST_CHECK_EQUAL(boost::static_pointer_cast<const PersistableMessage>(expectedMsg), msg);
BOOST_CHECK_EQUAL(expectedData, data);
}