From 7f984e6ad683db84b3abe08009120d95a6366633 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Mon, 2 Feb 2009 22:12:15 +0000 Subject: 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 --- cpp/src/tests/MessageBuilderTest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpp/src') 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 -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 expectedMsg; + boost::intrusive_ptr expectedMsg; string expectedData; std::list ops; @@ -63,18 +62,18 @@ class MockMessageStore : public NullMessageStore ops.push_back(APPEND); } - void stage(const intrusive_ptr& msg) + void stage(const boost::intrusive_ptr& msg) { checkExpectation(STAGE); BOOST_CHECK_EQUAL(expectedMsg, msg); msg->setPersistenceId(++id); } - void appendContent(const intrusive_ptr& msg, + void appendContent(const boost::intrusive_ptr& msg, const string& data) { checkExpectation(APPEND); - BOOST_CHECK_EQUAL(static_pointer_cast(expectedMsg), msg); + BOOST_CHECK_EQUAL(boost::static_pointer_cast(expectedMsg), msg); BOOST_CHECK_EQUAL(expectedData, data); } -- cgit v1.2.1