You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2009/02/02 23:12:15 UTC

svn commit: r740124 - /qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp

Author: shuston
Date: Mon Feb  2 22:12:15 2009
New Revision: 740124

URL: http://svn.apache.org/viewvc?rev=740124&view=rev
Log:
Explicitly reference boost namespace to avoid clashes on Windows

Modified:
    qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp?rev=740124&r1=740123&r2=740124&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/MessageBuilderTest.cpp Mon Feb  2 22:12:15 2009
@@ -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 @@
     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 @@
         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);            
     }
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org