diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-02-02 22:12:15 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-02-02 22:12:15 +0000 |
| commit | a6887208ec3ce1dac748dfa4a6a6b65f56deb1ad (patch) | |
| tree | aa959edaff1c8aba46ddd3ca59aed37cc30b1452 /qpid/cpp/src/tests/MessageBuilderTest.cpp | |
| parent | 9fee311bc73f83716ada431621ec86da386c96ec (diff) | |
| download | qpid-python-a6887208ec3ce1dac748dfa4a6a6b65f56deb1ad.tar.gz | |
Explicitly reference boost namespace to avoid clashes on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@740124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessageBuilderTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/MessageBuilderTest.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qpid/cpp/src/tests/MessageBuilderTest.cpp b/qpid/cpp/src/tests/MessageBuilderTest.cpp index a183742832..54646dcde6 100644 --- a/qpid/cpp/src/tests/MessageBuilderTest.cpp +++ b/qpid/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); } |
